Interface class for accessing Roundcube shared cache
package |
Framework |
---|---|
subpackage |
Cache |
author |
Thomas Bruederli |
author |
Aleksander Machniak |
__construct(string $type, string $prefix = '', string $ttl, bool $packed = true)
string
Engine type ('db' or 'memcache' or 'apc')
string
Key name prefix
string
Expiration time of memcache/apc items
bool
Enables/disabled data serialization.
It's possible to disable data serialization if you're sure
stored data will be always a safe string
get(string $key) : mixed
string
Cache key name
mixed
Cached value
set(string $key, mixed $data)
string
Cache key name
mixed
Cache data
read(string $key) : mixed
string
Cache key name
mixed
Cached value
write(string $key, mixed $data)
string
Cache key name
mixed
Cache data
remove(string $key = null, boolean $prefix_mode = false)
string
Cache key name or pattern
boolean
Enable it to clear all keys starting
with prefix specified in $key
expunge()
gc()
close()
read_record(string $key, boolean $nostore = false) : mixed
string
Cache key name
boolean
Enable to skip in-memory store
mixed
Cached value
write_record(string $key, \mxied $data)
string
Cache key name
\mxied
Serialized cache data
remove_record(string $key = null, boolean $prefix_mode = false)
string
Cache key name or pattern
boolean
Enable it to clear all keys starting
with prefix specified in $key
add_record(string $key, \mxied $data, \bollean $index = false)
string
Cache key name
\mxied
Serialized cache data
\bollean
Enables immediate index update
delete_record($key, $index = true)
write_index()
load_index()
ckey(string $key) : string
string
Cache key name
string
Cache key
ikey() : string
string
Cache key
serialize($data)
unserialize($data)
type :
prefix :
ttl :
packed :
index :
table :
cache :
cache_changes :
cache_sums :