메소드 |
설명 |
|
__construct ( Buffer $local, MatthiasMullie\Scrapbook\KeyValueStore $cache ) |
|
|
add ( $key, $value, $expire ) |
|
|
cas ( $token, $key, $value, $expire ) |
Since our CAS is deferred, the CAS token we got from our original
get() will likely not be valid by the time we want to store it to
the real cache. Imagine this scenario:
* a value is fetched from (real) cache
* an new value key is CAS'ed (into temp cache - real CAS is deferred)
* this key's value is fetched again (this time from temp cache)
* and a new value is CAS'ed again (into temp cache. |
|
commit ( ) : boolean |
Commits all deferred updates to real cache. |
|
decrement ( $key, $offset = 1, $initial, $expire ) |
|
|
delete ( $key ) |
|
|
deleteMulti ( array $keys ) |
|
|
flush ( ) |
|
|
get ( $key, &$token = null ) |
|
|
getMulti ( array $keys, array &$tokens = null ) |
|
|
increment ( $key, $offset = 1, $initial, $expire ) |
|
|
replace ( $key, $value, $expire ) |
|
|
rollback ( ) : boolean |
Roll back all scheduled changes. |
|
set ( $key, $value, $expire ) |
|
|
setMulti ( array $items, $expire ) |
|
|
touch ( $key, $expire ) |
|
|