class Sequel::Plugins::Cacheable::DalliDriver

Public Instance Methods

del(key) click to toggle source
# File lib/sequel-cacheable/driver/dalli.rb, line 4
def del(key)
  @store.delete(key)

  return nil
end
expire(key, time) click to toggle source
# File lib/sequel-cacheable/driver/dalli.rb, line 10
def expire(key, time)
  if time > 0
    @store.touch(key, time)
  else
    @store.delete(key)
  end
end