PHP 클래스 Cachearium\Backend\CacheMemcached

Keys are set up as: [namespace]_[id]_[subgroup] We inherit from CacheRAM to avoid fetching things multiple times.
상속: extends CacheRAM
파일 보기 프로젝트 열기: corollarium/cachearium 1 사용 예제들

공개 메소드들

메소드 설명
__clone ( ) Prevent users to clone the instance
addServers ( array $servers ) : boolean
cleanP ( $base, $id ) (non-PHPdoc)
clear ( ) (non-PHPdoc)
delete ( CacheKey $k ) (non-PHPdoc)
errorCallback ( )
get ( CacheKey $k ) (non-PHPdoc)
getFetches ( )
hasMemcachedExt ( ) : boolean Is memcached available in this system?
increment ( $value, CacheKey $k, $default ) (non-PHPdoc)
prefetch ( $data ) (non-PHPdoc)
prefetchClear ( ) Clear prefetched data. This is rarely useful.
prefetchKeys ( $keys )
report ( ) (non-PHPdoc)
singleton ( $servers = [] ) : Cache Cache constructor (this is a singleton).
store ( $data, CacheKey $k, $lifetime ) (non-PHPdoc)

보호된 메소드들

메소드 설명
hashKey ( CacheKey $k ) (non-PHPdoc)

비공개 메소드들

메소드 설명
__construct ( ) Constructor.
getGroupString ( CacheKey $k ) : string Converts cachekey to a string for the data group.

메소드 상세

__clone() 공개 메소드

Prevent users to clone the instance
public __clone ( )

addServers() 공개 메소드

public addServers ( array $servers ) : boolean
$servers array Each entry in servers is supposed to be an array containing hostname, port, and, optionally, weight of the server. $servers = array( array('mem1.domain.com', 11211, 33), array('mem2.domain.com', 11211, 67) );
리턴 boolean

cleanP() 공개 메소드

(non-PHPdoc)
또한 보기: Cachearium\Backend\CacheRAM::cleanP()
public cleanP ( $base, $id )

clear() 공개 메소드

(non-PHPdoc)
또한 보기: Cachearium\Backend\CacheRAM::clear()
public clear ( )

delete() 공개 메소드

(non-PHPdoc)
또한 보기: Cachearium\Backend\CacheRAM::delete()
public delete ( CacheKey $k )
$k Cachearium\CacheKey

errorCallback() 공개 메소드

public errorCallback ( )

get() 공개 메소드

(non-PHPdoc)
또한 보기: Cachearium\Backend\CacheRAM::get()
public get ( CacheKey $k )
$k Cachearium\CacheKey

getFetches() 공개 메소드

public getFetches ( )

hasMemcachedExt() 공개 정적인 메소드

Is memcached available in this system?
public static hasMemcachedExt ( ) : boolean
리턴 boolean

hashKey() 보호된 메소드

(non-PHPdoc)
또한 보기: Cachearium\Backend\CacheRAM::hashKey()
protected hashKey ( CacheKey $k )
$k Cachearium\CacheKey

increment() 공개 메소드

(non-PHPdoc)
또한 보기: Cachearium\Backend\CacheRAM::increment()
public increment ( $value, CacheKey $k, $default )
$k Cachearium\CacheKey

prefetch() 공개 메소드

(non-PHPdoc)
또한 보기: Cachearium\Backend\CacheRAM::prefetch()
public prefetch ( $data )

prefetchClear() 공개 메소드

Clear prefetched data. This is rarely useful.
public prefetchClear ( )

prefetchKeys() 공개 메소드

public prefetchKeys ( $keys )

report() 공개 메소드

(non-PHPdoc)
또한 보기: Cachearium\Backend\CacheRAM::report()
public report ( )

singleton() 공개 정적인 메소드

Cache constructor (this is a singleton).
public static singleton ( $servers = [] ) : Cache
리턴 Cache The cache singleton.

store() 공개 메소드

(non-PHPdoc)
또한 보기: Cachearium\Backend\CacheRAM::store()
public store ( $data, CacheKey $k, $lifetime )
$k Cachearium\CacheKey