Class: DeepLDiff::RedisCacheStore
- Inherits:
-
Object
- Object
- DeepLDiff::RedisCacheStore
- Extended by:
- Dry::Initializer
- Defined in:
- lib/deepl_diff/redis_cache_store.rb
Instance Method Summary collapse
Instance Method Details
#read_multi(keys) ⇒ Object
11 12 13 |
# File 'lib/deepl_diff/redis_cache_store.rb', line 11 def read_multi(keys) redis { |redis| redis.mget(*keys) } end |
#write(key, value) ⇒ Object
15 16 17 |
# File 'lib/deepl_diff/redis_cache_store.rb', line 15 def write(key, value) redis { |redis| redis.setex(key, timeout, value) } end |