Module: Schematic::RedisClientInterface
- Defined in:
- lib/schematic/redis_cache.rb
Overview
Minimal interface describing the Redis client methods used by RedisCacheProvider. Compatible with the ‘redis’ gem’s Redis client.
Instance Method Summary collapse
- #del(*keys) ⇒ Object
- #get(key) ⇒ Object
- #scan_each(match:, count:, &block) ⇒ Object
- #set(key, value) ⇒ Object
- #setex(key, seconds, value) ⇒ Object
Instance Method Details
#del(*keys) ⇒ Object
21 22 23 |
# File 'lib/schematic/redis_cache.rb', line 21 def del(*keys) raise NotImplementedError end |
#get(key) ⇒ Object
9 10 11 |
# File 'lib/schematic/redis_cache.rb', line 9 def get(key) raise NotImplementedError end |
#scan_each(match:, count:, &block) ⇒ Object
25 26 27 |
# File 'lib/schematic/redis_cache.rb', line 25 def scan_each(match:, count:, &block) raise NotImplementedError end |
#set(key, value) ⇒ Object
17 18 19 |
# File 'lib/schematic/redis_cache.rb', line 17 def set(key, value) raise NotImplementedError end |
#setex(key, seconds, value) ⇒ Object
13 14 15 |
# File 'lib/schematic/redis_cache.rb', line 13 def setex(key, seconds, value) raise NotImplementedError end |