A null KeyCache that does not cache at all.

package Swift
subpackage KeyCache
author Chris Corbyn

 Methods

Clear all data in the namespace $nsKey if it exists.

clearAll(string $nsKey) 

Parameters

$nsKey

string

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

$is

\Swift_InputByteStream

to write the data to

Provides a ByteStream which when written to, writes data to $itemKey.

getInputByteStream(string $nsKey, string $itemKey, \Swift_InputByteStream $writeThrough) : \Swift_InputByteStream

NOTE: The stream will always write in append mode.

Parameters

$nsKey

string

$itemKey

string

$writeThrough

Returns

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) 
see MODE_APPEND

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) 
see MODE_APPEND

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