PHP 클래스 MatthiasMullie\Scrapbook\Buffered\BufferedStore

저자: Matthias Mullie ([email protected])
상속: implements MatthiasMullie\Scrapbook\KeyValueStore
파일 보기 프로젝트 열기: matthiasmullie/scrapbook

보호된 프로퍼티들

프로퍼티 타입 설명
$local MatthiasMullie\Scrapbook\Buffered\Utils\Buffer Local in-memory storage, for the data we've already requested from or written to the real cache.
$transaction MatthiasMullie\Scrapbook\Buffered\Utils\Transaction All we'll need to add is also buffering non-write results.

공개 메소드들

메소드 설명
__construct ( MatthiasMullie\Scrapbook\KeyValueStore $cache )
add ( $key, $value, $expire )
cas ( $token, $key, $value, $expire )
decrement ( $key, $offset = 1, $initial, $expire )
delete ( $key )
deleteMulti ( array $keys )
flush ( )
get ( $key, &$token = null ) In addition to all writes being stored to $local, we'll also keep get() values around ;).
getMulti ( array $keys, array &$tokens = null ) In addition to all writes being stored to $local, we'll also keep get() values around ;).
increment ( $key, $offset = 1, $initial, $expire )
replace ( $key, $value, $expire )
set ( $key, $value, $expire )
setMulti ( array $items, $expire )
touch ( $key, $expire )

메소드 상세

__construct() 공개 메소드

public __construct ( MatthiasMullie\Scrapbook\KeyValueStore $cache )
$cache MatthiasMullie\Scrapbook\KeyValueStore The real cache we'll buffer for

add() 공개 메소드

public add ( $key, $value, $expire )

cas() 공개 메소드

public cas ( $token, $key, $value, $expire )

decrement() 공개 메소드

public decrement ( $key, $offset = 1, $initial, $expire )

delete() 공개 메소드

public delete ( $key )

deleteMulti() 공개 메소드

public deleteMulti ( array $keys )
$keys array

flush() 공개 메소드

public flush ( )

get() 공개 메소드

public get ( $key, &$token = null )

getMulti() 공개 메소드

public getMulti ( array $keys, array &$tokens = null )
$keys array
$tokens array

increment() 공개 메소드

public increment ( $key, $offset = 1, $initial, $expire )

replace() 공개 메소드

public replace ( $key, $value, $expire )

set() 공개 메소드

public set ( $key, $value, $expire )

setMulti() 공개 메소드

public setMulti ( array $items, $expire )
$items array

touch() 공개 메소드

public touch ( $key, $expire )

프로퍼티 상세

$local 보호되어 있는 프로퍼티

Local in-memory storage, for the data we've already requested from or written to the real cache.
protected Buffer,MatthiasMullie\Scrapbook\Buffered\Utils $local
리턴 MatthiasMullie\Scrapbook\Buffered\Utils\Buffer

$transaction 보호되어 있는 프로퍼티

All we'll need to add is also buffering non-write results.
protected Transaction,MatthiasMullie\Scrapbook\Buffered\Utils $transaction
리턴 MatthiasMullie\Scrapbook\Buffered\Utils\Transaction