Module: Rack::Dedos::Cache::Redis
- Defined in:
- lib/rack/dedos/cache.rb
Instance Method Summary collapse
Instance Method Details
#get(key) ⇒ Object
51 52 53 |
# File 'lib/rack/dedos/cache.rb', line 51 def get(key) @store.with { _1.get(prefixed(key)) } end |
#set(key, value, expires_in: @expires_in) ⇒ Object
47 48 49 |
# File 'lib/rack/dedos/cache.rb', line 47 def set(key, value, expires_in: @expires_in) @store.with { _1.set(prefixed(key), value, ex: expires_in) } end |