Class: ActiveJob::Lockable::RedisStore
- Inherits:
-
Object
- Object
- ActiveJob::Lockable::RedisStore
- Defined in:
- lib/activejob/lockable/redis_store.rb
Class Method Summary collapse
- .del(cache_key) ⇒ Object
- .exists?(cache_key) ⇒ Boolean
- .setex(cache_key, expiration, cache_value) ⇒ Object
- .ttl(cache_key) ⇒ Object
Class Method Details
.del(cache_key) ⇒ Object
17 18 19 |
# File 'lib/activejob/lockable/redis_store.rb', line 17 def del(cache_key) ActiveJob::Lockable.redis.del(cache_key) end |
.exists?(cache_key) ⇒ Boolean
9 10 11 |
# File 'lib/activejob/lockable/redis_store.rb', line 9 def exists?(cache_key) ActiveJob::Lockable.redis.exists(cache_key) end |