Sha256: 8478295f9523e65c22ecc8542ac12637b65d16beebecff12bec7c807a5a8f075

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents

class APICache
  # A null store for environments where caching may be undesirable, such as
  # testing.
  class NullStore < APICache::AbstractStore
    def initialize
    end

    def set(key, value)
      true
    end

    def get(key)
      nil
    end

    def delete(key)
    end

    def exists?(key)
      false
    end

    def created_at(key)
      nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api_cache-0.3.0 lib/api_cache/null_store.rb