Class: FidoMetadata::TestCacheStore

Inherits:
Object
  • Object
show all
Defined in:
lib/fido_metadata/test_cache_store.rb

Instance Method Summary collapse

Constructor Details

#initializeTestCacheStore

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(_options = 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, _options = 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, _options = 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, _options = nil)
  @store[name] = value
end