Sha256: 96cb4ba34a926347bcd84b67f5ad9a0e4267c234eb9e5368dd809be6a2aeed55

Contents?: true

Size: 281 Bytes

Versions: 12

Compression:

Stored size: 281 Bytes

Contents

# Fake cache that does not cache anything
# Use Restfulie::Client.cache_provider = Restfulie::Client::Cache::Fake.new
module Restfulie::Client::Cache
  class Fake
    def put(url, req, response)
      response
    end

    def get(url, req)
    end

    def clear
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 lib/restfulie/client/cache/fake.rb
restfulie-1.1.1 lib/restfulie/client/cache/fake.rb
restfulie-1.1.0 lib/restfulie/client/cache/fake.rb
restfulie-nosqlite-1.0.3 lib/restfulie/client/cache/fake.rb
restfulie-1.0.3 lib/restfulie/client/cache/fake.rb
restfulie-1.0.0 lib/restfulie/client/cache/fake.rb
restfulie-1.0.0.beta5 lib/restfulie/client/cache/fake.rb
restfulie-1.0.0.beta4 lib/restfulie/client/cache/fake.rb
restfulie-1.0.0.beta1 lib/restfulie/client/cache/fake.rb
restfulie-0.1.0.beta1 lib/restfulie/client/cache/fake.rb
restfulie-0.9.3 lib/restfulie/client/cache/fake.rb
restfulie-0.9.1 lib/restfulie/client/cache/fake.rb