\CacheMemcacheCore

This class require PECL Memcache extension

Summary

Methods
Properties
Constants
__construct()
__destruct()
connect()
flush()
addServer()
getMemcachedServers()
deleteServer()
No public properties found
No constants found
_set()
_get()
_exists()
_delete()
_writeKeys()
close()
$memcache
$is_connected
N/A
No private methods found
No private properties found
N/A

Properties

$memcache

$memcache : \Memcache

Type

\Memcache

$is_connected

$is_connected : boolean

Type

boolean — Connection status

Methods

__construct()

__construct() 

__destruct()

__destruct() 

connect()

connect() 

Connect to memcache server

flush()

flush() 

addServer()

addServer(string  $ip, integer  $port, integer  $weight) 

Add a memcache server

Parameters

string $ip
integer $port
integer $weight

getMemcachedServers()

getMemcachedServers() : array

Get list of memcached servers

Returns

array

deleteServer()

deleteServer(integer  $id_server) 

Delete a memcache server

Parameters

integer $id_server

_set()

_set(  $key,   $value,   $ttl) 

Parameters

$key
$value
$ttl

_get()

_get(  $key) 

Parameters

$key

_exists()

_exists(  $key) 

Parameters

$key

_delete()

_delete(  $key) 

Parameters

$key

_writeKeys()

_writeKeys() 

close()

close() : boolean

Close connection to memcache server

Returns

boolean