Class: Cache::RedisCache

Inherits:
Object
  • Object
show all
Defined in:
lib/cache/redis_cache.rb

Class Method Summary collapse

Class Method Details

.get(key) ⇒ Object



12
13
14
# File 'lib/cache/redis_cache.rb', line 12

def get(key)
  cache.get(key)
end

.set(key, value, expiry = 3600) ⇒ Object



8
9
10
# File 'lib/cache/redis_cache.rb', line 8

def set(key, value, expiry = 3600)
  cache.set(key, value, ex: expiry)
end