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 classes/swiftmailer/lib/classes/Swift/KeyCache/ArrayKeyCache.php
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/KeyCache/ArrayKeyCache.php
public
|
#
__construct(
Create a new ArrayKeyCache with the given $stream for cloning to make InputByteStreams. |
public
|
|
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
|
|
public
|
|
public
|
|
private
|
MODE_APPEND,
MODE_WRITE
|
private
array
|
$_contents
Cache contents. |
#
array()
|
private
|
$_stream
An InputStream for cloning. |