Class: APICache::NullStore
- Inherits:
-
AbstractStore
- Object
- AbstractStore
- APICache::NullStore
- Defined in:
- lib/api_cache/null_store.rb
Overview
A null store for environments where caching may be undesirable, such as testing.
Instance Method Summary (collapse)
- - (Boolean) exists?(key)
- - (Boolean) expired?(key, timeout)
-
- (NullStore) initialize
constructor
A new instance of NullStore.
- - (Object) set(key, value)
Methods inherited from AbstractStore
Constructor Details
- (NullStore) initialize
A new instance of NullStore
5 6 |
# File 'lib/api_cache/null_store.rb', line 5 def initialize end |
Instance Method Details
- (Boolean) exists?(key)
8 9 10 |
# File 'lib/api_cache/null_store.rb', line 8 def exists?(key) false end |
- (Boolean) expired?(key, timeout)
16 17 18 |
# File 'lib/api_cache/null_store.rb', line 16 def expired?(key, timeout) true end |
- (Object) set(key, value)
12 13 14 |
# File 'lib/api_cache/null_store.rb', line 12 def set(key, value) true end |