Class Swift_KeyCache_ArrayKeyCache
A basic KeyCache backed by an array.
- Swift_KeyCache_ArrayKeyCache implements Swift_KeyCache
Package: Swift\KeyCache
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/KeyCache/ArrayKeyCache.php
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/KeyCache/ArrayKeyCache.php
Methods summary
public
|
#
__construct(
Create a new ArrayKeyCache with the given $stream for cloning to make InputByteStreams. |
public
|
#
setString( string $nsKey, string $itemKey, string $string, integer $mode )
Set a string into the cache under $itemKey for the namespace $nsKey. |
public
|
#
importFromByteStream( string $nsKey, string $itemKey,
Set a ByteStream into the cache under $itemKey for the namespace $nsKey. |
public
|
#
getInputByteStream( string $nsKey, string $itemKey,
Provides a ByteStream which when written to, writes data to $itemKey. NOTE: The stream will always write in append mode. |
public
string
|
|
public
|
#
exportToByteStream( string $nsKey, string $itemKey,
Get data back out of the cache as a ByteStream. |
public
boolean
|
#
hasKey( string $nsKey, string $itemKey )
Check if the given $itemKey exists in the namespace $nsKey. |
public
|
#
clearKey( string $nsKey, string $itemKey )
Clear data for $itemKey in the namespace $nsKey if it exists. |
public
|
|
private
|
Magic methods summary
Constants summary
Constants inherited from Swift_KeyCache
Properties summary
private
array
|
$_contents |
#
Cache contents. |
private
|
$_stream |
#
An InputStream for cloning. |