Class: RedisClusterCacheBenchmark::MemoryStorage

Inherits:
Object
  • Object
show all
Defined in:
lib/redis_cluster_cache_benchmark/memory_storage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMemoryStorage

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

#loggerObject

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, options = {})
  @impl[key] = value
end