Cache storage object constructor
Parameters:
string |
$dir: |
Cache root directory. System default will be used if empty. |
API Tags:
void clear(
[
$realm = COT_DEFAULT_REALM]
)
|
|
Parameters:
API Tags:
bool exists(
string
$id, [string
$realm = COT_DEFAULT_REALM]
)
|
|
Checks if an object is stored in disk cache
Parameters:
string |
$id: |
Object identifier |
string |
$realm: |
Cache realm |
API Tags:
mixed get(
string
$id, [string
$realm = COT_DEFAULT_REALM]
)
|
|
Gets an object directly from disk
Parameters:
string |
$id: |
Object identifier |
string |
$realm: |
Realm name |
API Tags:
Return: | Cached item value or NULL if the item was not found in cache |
Access: | public |
void remove(
string
$id, [string
$realm = COT_DEFAULT_REALM]
)
|
|
Removes cache image of the object from disk
Parameters:
string |
$id: |
Object identifier |
string |
$realm: |
Realm name |
API Tags:
bool store(
string
$id, mixed
$data, [string
$realm = COT_DEFAULT_REALM]
)
|
|
Stores disk cache entry
Parameters:
string |
$id: |
Object identifier |
mixed |
$data: |
Object value |
string |
$realm: |
Realm name |
API Tags:
Redefinition of:
- Static_cache_driver::store()
- Stores data as object image in cache