Class: FidoMetadata::TestCacheStore
- Inherits:
-
Object
- Object
- FidoMetadata::TestCacheStore
- Defined in:
- lib/fido_metadata/test_cache_store.rb
Instance Method Summary collapse
- #clear(_options = nil) ⇒ Object
- #delete(name, _options = nil) ⇒ Object
-
#initialize ⇒ TestCacheStore
constructor
A new instance of TestCacheStore.
- #read(name, _options = nil) ⇒ Object
- #write(name, value, _options = nil) ⇒ Object
Constructor Details
#initialize ⇒ TestCacheStore
Returns a new instance of TestCacheStore.
6 7 8 |
# File 'lib/fido_metadata/test_cache_store.rb', line 6 def initialize @store = {} end |
Instance Method Details
#clear(_options = nil) ⇒ Object
22 23 24 |
# File 'lib/fido_metadata/test_cache_store.rb', line 22 def clear( = nil) @store.clear end |
#delete(name, _options = nil) ⇒ Object
18 19 20 |
# File 'lib/fido_metadata/test_cache_store.rb', line 18 def delete(name, = nil) @store.delete(name) end |
#read(name, _options = nil) ⇒ Object
10 11 12 |
# File 'lib/fido_metadata/test_cache_store.rb', line 10 def read(name, = nil) @store[name] end |
#write(name, value, _options = nil) ⇒ Object
14 15 16 |
# File 'lib/fido_metadata/test_cache_store.rb', line 14 def write(name, value, = nil) @store[name] = value end |