class memcache extends memory
ACM for Memcached
Properties
$vars | ||
$is_modified | ||
$sql_rowset | ||
$sql_row_pointer | ||
$cache_dir | ||
$key_prefix | ||
$extension | ||
$memcache | ||
$flags |
Methods
null |
purge()
Purge cache data |
|
null |
unload()
Unload cache object |
|
int|bool |
sql_load(string $query)
Load result of an SQL query from cache. |
from base |
bool |
sql_exists(int $query_id)
Check if result for a given SQL query exists in cache. |
from base |
array|bool |
sql_fetchrow(int $query_id)
Fetch row from cache (database) |
from base |
string|bool |
sql_fetchfield(int $query_id, string $field)
Fetch a field from the current row of a cached database result (database) |
from base |
bool |
sql_rowseek(int $rownum, int $query_id)
Seek a specific row in an a cached database result (database) |
from base |
bool |
sql_freeresult(int $query_id)
Free memory used for a cached database result (database) |
from base |
bool |
remove_file(string $filename, bool $check = false)
Removes/unlinks file |
from base |
__construct()
Set cache path |
||
mixed |
load()
Load global cache |
from memory |
null |
save()
Save modified objects |
from memory |
null |
tidy()
Tidy cache |
from memory |
mixed |
get(string $var_name)
Get saved cache object |
from memory |
null |
put(string $var_name, mixed $var, int $ttl = 2592000)
Put data into cache |
from memory |
null |
destroy(string $var_name, string $table = '')
Destroy cache data |
from memory |
bool |
_exists(string $var_name)
Check if a given cache entry exists |
from memory |
int|mixed |
sql_save(driver_interface $db, string $query, mixed $query_result, int $ttl)
Save result of an SQL query in cache. |
from memory |
bool |
_isset(string $var)
Check if a cache var exists |
from memory |
mixed |
_read(string $var)
Fetch an item from the cache |
|
bool |
_write(string $var, mixed $data, int $ttl = 2592000)
Store data in the cache |
|
bool |
_delete(string $var)
Remove an item from the cache |
Details
at line 74
public null
purge()
Purge cache data
at line 64
public null
unload()
Unload cache object
in base at line 94
public int|bool
sql_load(string $query)
Load result of an SQL query from cache.
in base at line 114
public bool
sql_exists(int $query_id)
Check if result for a given SQL query exists in cache.
in base at line 122
public array|bool
sql_fetchrow(int $query_id)
Fetch row from cache (database)
in base at line 135
public string|bool
sql_fetchfield(int $query_id, string $field)
Fetch a field from the current row of a cached database result (database)
in base at line 148
public bool
sql_rowseek(int $rownum, int $query_id)
Seek a specific row in an a cached database result (database)
in base at line 162
public bool
sql_freeresult(int $query_id)
Free memory used for a cached database result (database)
in base at line 182
public bool
remove_file(string $filename, bool $check = false)
Removes/unlinks file
at line 47
public
__construct()
Set cache path
in memory at line 51
public mixed
load()
Load global cache
in memory at line 67
public null
save()
Save modified objects
in memory at line 82
public null
tidy()
Tidy cache
in memory at line 92
public mixed
get(string $var_name)
Get saved cache object
in memory at line 112
public null
put(string $var_name, mixed $var, int $ttl = 2592000)
Put data into cache
in memory at line 128
public null
destroy(string $var_name, string $table = '')
Destroy cache data
in memory at line 182
public bool
_exists(string $var_name)
Check if a given cache entry exists
in memory at line 202
public int|mixed
sql_save(driver_interface $db, string $query, mixed $query_result, int $ttl)
Save result of an SQL query in cache.
In persistent cache stores, this function stores the query result to persistent storage. In other words, there is no need to call save() afterwards.
in memory at line 276
public bool
_isset(string $var)
Check if a cache var exists
at line 88
public mixed
_read(string $var)
Fetch an item from the cache
at line 102
public bool
_write(string $var, mixed $data, int $ttl = 2592000)
Store data in the cache
at line 118
public bool
_delete(string $var)
Remove an item from the cache