A basic KeyCache backed by an array.
Methods
Clear all data in the namespace $nsKey if it exists.
clearAll(string $nsKey)
Clear data for $itemKey in the namespace $nsKey if it exists.
clearKey(string $nsKey, string $itemKey)
Parameters
$nsKey
string
$itemKey
string
Get data back out of the cache as a ByteStream.
exportToByteStream(string $nsKey, string $itemKey, \Swift_InputByteStream $is)
Parameters
$nsKey
string
$itemKey
string
Get data back out of the cache as a string.
getString(string $nsKey, string $itemKey) : string
Parameters
$nsKey
string
$itemKey
string
Returns
string
Check if the given $itemKey exists in the namespace $nsKey.
hasKey(string $nsKey, string $itemKey) : boolean
Parameters
$nsKey
string
$itemKey
string
Returns
boolean
Set a ByteStream into the cache under $itemKey for the namespace $nsKey.
importFromByteStream(string $nsKey, string $itemKey, \Swift_OutputByteStream $os, int $mode)
Parameters
$nsKey
string
$itemKey
string
$mode
int
Set a string into the cache under $itemKey for the namespace $nsKey.
setString(string $nsKey, string $itemKey, string $string, int $mode)
Parameters
$nsKey
string
$itemKey
string
$string
string
$mode
int
Constants
Mode for appending data to the end of existing cached data
MODE_APPEND
Inherited
inherited_from |
\Swift_KeyCache::MODE_APPEND |
Mode for replacing existing cached data
MODE_WRITE
Inherited
inherited_from |
\Swift_KeyCache::MODE_WRITE |