Property | Type | Description | |
---|---|---|---|
$filesystem | League\Flysystem\Filesystem |
Method | Description | |
---|---|---|
__construct ( League\Flysystem\Filesystem $filesystem ) | ||
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 ) | ||
getMulti ( array $keys, array &$tokens = null ) | ||
increment ( $key, $offset = 1, $initial, $expire ) | ||
replace ( $key, $value, $expire ) | ||
set ( $key, $value, $expire ) | ||
setMulti ( array $items, $expire ) | ||
touch ( $key, $expire ) |
Method | Description | |
---|---|---|
doIncrement ( string $key, integer $offset, integer $initial, integer $expire ) : integer | boolean | Shared between increment/decrement: both have mostly the same logic (decrement just increments a negative value), but need their validation split up (increment won't accept negative values). | |
exists ( string $key ) : boolean | ||
lock ( string $key ) : boolean | Obtain a lock for a given key. | |
normalizeTime ( integer $time ) : integer | Times can be: * relative (in seconds) to current time, within 30 days * absolute unix timestamp * 0, for infinity. | |
path ( string $key ) : string | ||
read ( string $key ) : boolean | array | Fetch stored data from cache file. | |
unlock ( string $key ) : boolean | Release the lock for a given key. | |
wrap ( string $value, integer $expire ) : string | Build value, token & expiration time to be stored in cache file. |
public __construct ( League\Flysystem\Filesystem $filesystem ) | ||
$filesystem | League\Flysystem\Filesystem |
protected normalizeTime ( integer $time ) : integer | ||
$time | integer | |
return | integer |