Interface class for accessing Roundcube shared cache
| package |
Framework |
|---|---|
| subpackage |
Cache |
| author |
Thomas Bruederli roundcube@gmail.com |
| author |
Aleksander Machniak alec@alec.pl |
__construct(string $type, string $prefix = '', string $ttl, boolean $packed = true)
stringEngine type ('db' or 'memcache' or 'apc')
stringKey name prefix
stringExpiration time of memcache/apc items
booleanEnables/disabled data serialization. It's possible to disable data serialization if you're sure stored data will be always a safe string
add_record(string $key, mixed $data)
stringCache internal key name
mixedSerialized cache data
ckey(string $key) : string
stringCache key name
stringCache key
close()
debug( $type, $key, $data = null, $result = null)
delete_record(string $key)
stringCache internal key name
expunge()
gc()
get(string $key) : mixed
stringCache key name
mixedCached value
ikey() : string
stringCache key
load_index()
max_packet_size()
read(string $key) : mixed
stringCache key name
mixedCached value
read_record(string $key, boolean $nostore = false) : mixed
stringCache key name
booleanEnable to skip in-memory store
mixedCached value
remove(string $key = null, boolean $prefix_mode = false)
stringCache key name or pattern
booleanEnable it to clear all keys starting with prefix specified in $key
remove_record(string $key = null, boolean $prefix_mode = false)
stringCache key name or pattern
booleanEnable it to clear all keys starting with prefix specified in $key
serialize( $data)
set(string $key, mixed $data)
stringCache key name
mixedCache data
unserialize( $data)
write(string $key, mixed $data)
stringCache key name
mixedCache data
write_index()
write_record(string $key, mixed $data)
stringCache key name
mixedSerialized cache data
db : \rcube_db|\Memcache|boolean
type :
prefix :
ttl :
packed :
index :
table :
debug :
index_changed :
cache :
cache_changes :
cache_sums :
max_packet :