Class: RedisClusterCacheBenchmark::MemoryStorage
- Inherits:
-
Object
- Object
- RedisClusterCacheBenchmark::MemoryStorage
- Defined in:
- lib/redis_cluster_cache_benchmark/memory_storage.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
- #get(key) ⇒ Object
-
#initialize ⇒ MemoryStorage
constructor
A new instance of MemoryStorage.
- #set(key, value, options = {}) ⇒ Object
Constructor Details
#initialize ⇒ MemoryStorage
Returns a new instance of MemoryStorage.
7 8 9 |
# File 'lib/redis_cluster_cache_benchmark/memory_storage.rb', line 7 def initialize(*) @impl = {} end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/redis_cluster_cache_benchmark/memory_storage.rb', line 5 def logger @logger end |
Instance Method Details
#get(key) ⇒ Object
11 12 13 |
# File 'lib/redis_cluster_cache_benchmark/memory_storage.rb', line 11 def get(key) @impl[key] end |
#set(key, value, options = {}) ⇒ Object
15 16 17 |
# File 'lib/redis_cluster_cache_benchmark/memory_storage.rb', line 15 def set(key, value, = {}) @impl[key] = value end |