Class: Sequel::Plugins::Cacheable::MemcacheDriver
- Defined in:
- lib/sequel-cacheable/driver/memcache.rb
Instance Method Summary collapse
Methods inherited from Driver
factory, #fetch, #get, #initialize, #set
Constructor Details
This class inherits a constructor from Sequel::Plugins::Cacheable::Driver
Instance Method Details
#del(key) ⇒ Object
4 5 6 7 8 |
# File 'lib/sequel-cacheable/driver/memcache.rb', line 4 def del(key) @store.delete(key) return nil end |
#expire(key, time) ⇒ Object
10 11 12 |
# File 'lib/sequel-cacheable/driver/memcache.rb', line 10 def expire(key, time) @store.set(key, @store.get(key), time) end |