PHP Class Bluz\Cache\Adapter\Memcached

See also: Memcached
Inheritance: extends AbstractAdapter
Show file Open project: bluzphp/framework Class Usage Examples

Protected Properties

Property Type Description
$handler instance of memcached

Public Methods

Method Description
__construct ( array $settings = [] ) Check and setup memcached servers
getHandler ( ) : Memcached Get Mamcached Handler

Protected Methods

Method Description
doAdd ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
doContains ( string $id ) : boolean
doDelete ( string $id ) : boolean
doFlush ( ) : boolean
doGet ( string $id ) : mixed
doSet ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean

Method Details

__construct() public method

Check and setup memcached servers
public __construct ( array $settings = [] )
$settings array

doAdd() protected method

protected doAdd ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
$id string
$data mixed
$ttl integer
return boolean

doContains() protected method

protected doContains ( string $id ) : boolean
$id string
return boolean

doDelete() protected method

protected doDelete ( string $id ) : boolean
$id string
return boolean

doFlush() protected method

protected doFlush ( ) : boolean
return boolean

doGet() protected method

protected doGet ( string $id ) : mixed
$id string
return mixed

doSet() protected method

protected doSet ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
$id string
$data mixed
$ttl integer
return boolean

getHandler() public method

Get Mamcached Handler
public getHandler ( ) : Memcached
return Memcached

Property Details

$handler protected property

instance of memcached
protected $handler