\Pluf_Cache_Memcached

Cache in memory

A special 'cache_memcached_keyprefix' can be set to use one memcached for different applications and avoid conflict.

Example of configuration:

$cfg['cache_engine'] = 'Pluf_Cache_Memcached';
$cfg['cache_timeout'] = 300;
$cfg['cache_memcached_keyprefix'] = 'uniqueforapp';
$cfg['cache_memcached_server'] = 'localhost';
$cfg['cache_memcached_port'] = 11211;
$cfg['cache_memcached_compress'] = 0; (or MEMCACHE_COMPRESSED)

Summary

Methods
Properties
Constants
factory()
set()
get()
__construct()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$memcache
$keyprefix
N/A

Properties

$memcache

$memcache : 

Type

$keyprefix

$keyprefix : 

Type

Methods

factory()

factory() : \Pluf_Cache_*

فراخوانی سازنده کش

Returns

\Pluf_Cache_* —

Cache object

set()

set(  $key,   $value,   $timeout = null) : boolean

Set a value in the cache.

Parameters

$key
$value
$timeout

Returns

boolean —

Success

get()

get(  $key,   $default = null) 

Get value from the cache.

Parameters

$key
$default

__construct()

__construct()