PHP Class BaiduMemcachedStore, thinksns

Inheritance: extends BaiduStore
Show file Open project: medz/thinksns-4

Protected Properties

Property Type Description
$memcache Memcache Memcache instance
$sessionId string Session ID for current user to distinguish with other users.

Public Methods

Method Description
__construct ( string $clientId, Memcache $memcache, $sessionId )
get ( $key, $default = false )
remove ( $key )
removeAll ( )
set ( $key, $value )

Protected Methods

Method Description
getKeyForStore ( $key )

Method Details

__construct() public method

public __construct ( string $clientId, Memcache $memcache, $sessionId )
$clientId string
$memcache Memcache

get() public method

public get ( $key, $default = false )

getKeyForStore() protected method

protected getKeyForStore ( $key )

remove() public method

public remove ( $key )

removeAll() public method

public removeAll ( )

set() public method

public set ( $key, $value )

Property Details

$memcache protected property

Memcache instance
protected Memcache $memcache
return Memcache

$sessionId protected property

Session ID for current user to distinguish with other users.
protected string $sessionId
return string