Class: ActiveJob::Lockable::RedisStore

Inherits:
Object
  • Object
show all
Defined in:
lib/activejob/lockable/redis_store.rb

Class Method Summary collapse

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

Returns:

  • (Boolean)


9
10
11
# File 'lib/activejob/lockable/redis_store.rb', line 9

def exists?(cache_key)
  ActiveJob::Lockable.redis.exists(cache_key)
end

.set(cache_key, cache_value, options = {}) ⇒ Object



5
6
7
# File 'lib/activejob/lockable/redis_store.rb', line 5

def set(cache_key, cache_value, options = {})
  ActiveJob::Lockable.redis.set(cache_key, cache_value, options)
end

.ttl(cache_key) ⇒ Object



13
14
15
# File 'lib/activejob/lockable/redis_store.rb', line 13

def ttl(cache_key)
  ActiveJob::Lockable.redis.ttl(cache_key)
end