MySQL_cache __construct(
)
|
|
Performs pre-load actions
API Tags:
void clear(
[
$realm = '']
)
|
|
Parameters:
API Tags:
void exists(
$id, [
$realm = COT_DEFAULT_REALM]
)
|
|
Parameters:
API Tags:
void get(
$id, [
$realm = COT_DEFAULT_REALM]
)
|
|
Parameters:
API Tags:
void get_all(
[
$realms = COT_DEFAULT_REALM]
)
|
|
Parameters:
API Tags:
Redefinition of:
- Db_cache_driver::get_all()
- Loads all variables from a specified realm(s) into the global scope
bool store_now(
string
$id, mixed
$data, [string
$realm = COT_DEFAULT_REALM], [int
$ttl = COT_DEFAULT_TTL]
)
|
|
Writes item to cache immediately, avoiding writeback.
Parameters:
string |
$id: |
Object identifier |
mixed |
$data: |
Object value |
string |
$realm: |
Realm name |
int |
$ttl: |
Time to live, 0 for unlimited |
API Tags:
See: | Cache_driver::store() |
Access: | public |
Redefinition of:
- Writeback_cache_driver::store_now()
- Writes item to cache immediately, avoiding writeback.