extends |
Hm_IMAP_Parser |
|---|
Cache related methods
| Methods | ||||||
|---|---|---|---|---|---|---|
public
|
set_fetch_command($newval)
Store the imap command used to fetch a sorted message list in absence of
the SORT imap extension. This needs to be…
Store the imap command used to fetch a sorted message list in absence of the SORT imap extension. This needs to be removed from cache in some cases. |
# | ||||
public
|
get_fetch_command()
|
# | ||||
protected
|
update_cache_data(array $data): int
update the cache untagged QRESYNC FETCH responses
update the cache untagged QRESYNC FETCH responses Parameters
Returns1 if the cache was updated |
# | ||||
protected
|
cache_return_val(array $res, $command): array
cache certain IMAP command return values for re-use
cache certain IMAP command return values for re-use Parameters
Returnsinitial low level parsed IMAP response argument |
# | ||||
protected
|
collect_cache_entries_to_prune(int $count, array $exclude): array
search for cache entries to prune
search for cache entries to prune Parameters
Returnslist of key tuples of cache entries to prune |
# | ||||
protected
|
prune_cache($count): void
prune the IMAP cache if it needs it
prune the IMAP cache if it needs it |
# | ||||
protected
|
check_cache(string $command, bool $check_only = false): mixed
determine if the current command can be served from cache
determine if the current command can be served from cache Parameters
Returnscached result or false if there is no cached data to use |
# | ||||
public
|
bust_cache(string $type, $full = true): void
invalidate parts of the data cache
invalidate parts of the data cache Parameters
|
# | ||||
public
|
dump_cache($type = 'string'): string
output a string version of the cache that can be re-used
output a string version of the cache that can be re-used Returnsserialized version of the cache data |
# | ||||
public
|
load_cache(string $data, $type = 'string'): void
load cache data from the output of dump_cache()
load cache data from the output of dump_cache() Parameters
|
# | ||||
| Methods inherited from Hm_IMAP_Base |
|---|
parse_line(), fgets(), get_response(), send_command(), check_response(), utf7_decode(), utf7_encode(), input_validate(), is_clean(), apply_config() |