Memcache_driver __construct(
[string
$host = 'localhost'], [int
$port = 11211], [bool
$persistent = true], [bool
$compressed = true]
)
|
|
Creates an object and establishes Memcached server connection
Parameters:
string |
$host: |
Memcached host |
int |
$port: |
Memcached port |
bool |
$persistent: |
Use persistent connection |
bool |
$compressed: |
Use compression |
API Tags:
void clear(
[
$realm = '']
)
|
|
Parameters:
API Tags:
void dec(
$id, [
$realm = COT_DEFAULT_REALM], [
$value = 1]
)
|
|
Parameters:
API Tags:
Redefinition of:
- Temporary_cache_driver::dec()
- Decrements counter value
void exists(
$id, [
$realm = COT_DEFAULT_REALM]
)
|
|
Parameters:
API Tags:
void get(
$id, [
$realm = COT_DEFAULT_REALM]
)
|
|
Parameters:
API Tags:
void inc(
$id, [
$realm = COT_DEFAULT_REALM], [
$value = 1]
)
|
|
Parameters:
API Tags:
Redefinition of:
- Temporary_cache_driver::inc()
- Increments counter value
void remove(
$id, [
$realm = COT_DEFAULT_REALM]
)
|
|
Parameters:
API Tags:
void store(
$id,
$data, [
$realm = COT_DEFAULT_REALM], [
$ttl = COT_DEFAULT_TTL]
)
|
|
Parameters:
|
$id: |
|
|
$data: |
|
|
$realm: |
|
|
$ttl: |
|
API Tags:
Redefinition of:
- Dynamic_cache_driver::store()
- Stores data as object image in cache