PHP Class Jamm\Memory\MemcachedDecorator

Inheritance: implements Jamm\Memory\IMemcacheDecorator
Show file Open project: jamm/memory

Protected Properties

Property Type Description
$memcached Memcached

Public Methods

Method Description
__construct ( $host = 'localhost', $port = 11211 )
add ( $key, $var, $flag = null, $ttl )
connect ( $host = 'localhost', $port = 11211 )
decrement ( $key, $by_value )
delete ( $key )
get ( $key )
getStats ( )
increment ( $key, $by_value )
set ( $key, $value, $flag = null, $ttl )

Method Details

__construct() public method

public __construct ( $host = 'localhost', $port = 11211 )

add() public method

public add ( $key, $var, $flag = null, $ttl )

connect() public method

public connect ( $host = 'localhost', $port = 11211 )

decrement() public method

public decrement ( $key, $by_value )

delete() public method

public delete ( $key )

get() public method

public get ( $key )

getStats() public method

public getStats ( )

increment() public method

public increment ( $key, $by_value )

set() public method

public set ( $key, $value, $flag = null, $ttl )

Property Details

$memcached protected property

protected Memcached $memcached
return Memcached