class RedisClusterCacheBenchmark::MemoryStorage
Attributes
logger[RW]
Public Class Methods
new(*)
click to toggle source
# File lib/redis_cluster_cache_benchmark/memory_storage.rb, line 7 def initialize(*) @impl = {} end
Public Instance Methods
get(key)
click to toggle source
# File lib/redis_cluster_cache_benchmark/memory_storage.rb, line 11 def get(key) @impl[key] end
set(key, value, options = {})
click to toggle source
# File lib/redis_cluster_cache_benchmark/memory_storage.rb, line 15 def set(key, value, options = {}) @impl[key] = value end