Class | Merb::Cache::DatabaseStore::Sequel::CacheModel |
In: |
lib/merb-cache/cache-store/database-sequel.rb
|
Parent: | Sequel::Model(Merb::Controller._cache.config[:table_name].to_sym) |
The cache model
Fetch data from the database using the specified key The entry is deleted if it has expired
key<Sting>: | The key identifying the cache entry |
data<String, NilClass>: | nil is returned whether the entry expired or was not found |
Store data to the database using the specified key
key<Sting>: | The key identifying the cache entry |
data<String>: | The data to be put in cache |
expire<~minutes>: | The number of minutes (from now) the cache should persist |
get<Boolean>: | used internally to behave like this
|
Expire the cache entry identified by the given key
key<Sting>: | The key identifying the cache entry |