Interface class for accessing Roundcube messages cache
package |
Framework |
---|---|
subpackage |
Storage |
author |
Thomas Bruederli |
author |
Aleksander Machniak |
__construct(\rcube_db $db, \rcube_imap $imap, int $userid, bool $skip_deleted, string $ttl, int $threshold)
int
User identifier
bool
skip_deleted flag
string
Expiration time of memcache/apc items
int
Maximum cached message size
close()
set_mode(int $mode)
int
Cache mode
get_index(string $mailbox, string $sort_field = null, string $sort_order = null, $existing = false) : array
If index doesn't exist or is invalid, will be updated.
string
Folder name
string
Sorting column
string
Sorting order (ASC|DESC)
array
Messages index
get_thread(string $mailbox) : array
If threaded index doesn't exist or is invalid, will be updated.
string
Folder name
array
Messages threaded index
change_flag(string $mailbox, array $uids, string $flag, bool $enabled = false)
string
Folder name
array
Message UIDs or null to change flag
of all messages in a folder
string
The name of the flag
bool
Flag state
remove_index(string $mailbox = null, bool $remove = false)
string
Folder name
bool
Enable to remove the DB row
remove_thread(string $mailbox = null)
string
Folder name
clear(string $mailbox = null, array $uids = null)
string
Folder name
array
Message UIDs, NULL removes all messages in a folder
gc()
get_index_row($mailbox)
get_thread_row($mailbox)
add_index_row($mailbox, $sort_field, $data, $mbox_data = array(), $exists = false, $modseq = null)
add_thread_row($mailbox, $data, $mbox_data = array(), $exists = false)
validate($mailbox, $index, &$exists = true)
synchronize(string $mailbox)
string
Folder name
save_icache()
get_index_data($mailbox, $sort_field, $sort_order, $mbox_data = array())
get_thread_data($mailbox, $mbox_data = array())
MODE_INDEX
MODE_MESSAGE
userid : int
var | |
---|---|
int
ttl : int
var | |
---|---|
int
threshold : int
var | |
---|---|
int
icache : array
var | |
---|---|
array
skip_deleted :
mode :
flags :