PHP Class Swift_KeyCache_NullKeyCache, Halite

Author: Chris Corbyn
Inheritance: implements Swift_KeyCache
Afficher le fichier Open project: HaliteChallenge/Halite

Méthodes publiques

Méthode Description
clearAll ( string $nsKey ) Clear all data in the namespace $nsKey if it exists.
clearKey ( string $nsKey, string $itemKey ) Clear data for $itemKey in the namespace $nsKey if it exists.
exportToByteStream ( string $nsKey, string $itemKey, Swift_InputByteStream $is ) Get data back out of the cache as a ByteStream.
getInputByteStream ( string $nsKey, string $itemKey, Swift_InputByteStream $writeThrough = null ) : Swift_InputByteStream Provides a ByteStream which when written to, writes data to $itemKey.
getString ( string $nsKey, string $itemKey ) : string Get data back out of the cache as a string.
hasKey ( string $nsKey, string $itemKey ) : boolean Check if the given $itemKey exists in the namespace $nsKey.
importFromByteStream ( string $nsKey, string $itemKey, Swift_OutputByteStream $os, integer $mode ) Set a ByteStream into the cache under $itemKey for the namespace $nsKey.
setString ( string $nsKey, string $itemKey, string $string, integer $mode ) Set a string into the cache under $itemKey for the namespace $nsKey.

Method Details

clearAll() public méthode

Clear all data in the namespace $nsKey if it exists.
public clearAll ( string $nsKey )
$nsKey string

clearKey() public méthode

Clear data for $itemKey in the namespace $nsKey if it exists.
public clearKey ( string $nsKey, string $itemKey )
$nsKey string
$itemKey string

exportToByteStream() public méthode

Get data back out of the cache as a ByteStream.
public exportToByteStream ( string $nsKey, string $itemKey, Swift_InputByteStream $is )
$nsKey string
$itemKey string
$is Swift_InputByteStream to write the data to

getInputByteStream() public méthode

NOTE: The stream will always write in append mode.
public getInputByteStream ( string $nsKey, string $itemKey, Swift_InputByteStream $writeThrough = null ) : Swift_InputByteStream
$nsKey string
$itemKey string
$writeThrough Swift_InputByteStream
Résultat Swift_InputByteStream

getString() public méthode

Get data back out of the cache as a string.
public getString ( string $nsKey, string $itemKey ) : string
$nsKey string
$itemKey string
Résultat string

hasKey() public méthode

Check if the given $itemKey exists in the namespace $nsKey.
public hasKey ( string $nsKey, string $itemKey ) : boolean
$nsKey string
$itemKey string
Résultat boolean

importFromByteStream() public méthode

Set a ByteStream into the cache under $itemKey for the namespace $nsKey.
public importFromByteStream ( string $nsKey, string $itemKey, Swift_OutputByteStream $os, integer $mode )
$nsKey string
$itemKey string
$os Swift_OutputByteStream
$mode integer

setString() public méthode

Set a string into the cache under $itemKey for the namespace $nsKey.
public setString ( string $nsKey, string $itemKey, string $string, integer $mode )
$nsKey string
$itemKey string
$string string
$mode integer