\erdiko\core\cacheMemcached

Memcached Class

Summary

Methods
Properties
Constants
__construct()
__destruct()
getObject()
getKeyCode()
put()
get()
has()
forget()
forgetAll()
No public properties found
No constants found
No protected methods found
$memcacheObj
N/A
No private methods found
No private properties found
N/A

Properties

$memcacheObj

$memcacheObj : 

Memcached Object

Type

Methods

__construct()

__construct()

Constructor

__destruct()

__destruct()

Destructor

getObject()

getObject() : \erdiko\core\cache\Memcache

Get Cache Object

Returns

\erdiko\core\cache\Memcache —

$memcacheObj @note Please do not modify data if you use the put function in this class

getKeyCode()

getKeyCode( $key) : string

MD5 encode

Parameters

$key

Returns

string —

$key

put()

put( $key,  $data)

Put data into cache

Parameters

$key
$data

get()

get( $key) : string

Get value from cache

Parameters

$key

Returns

string —

$value @note Any cache array will get return as object @note If you need an array, use (array) $object

has()

has( $key)

Check if the key exists in cache

Parameters

$key

forget()

forget( $key)

Remove a key from cache

Parameters

$key

forgetAll()

forgetAll()

Flush all the cache