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 wa-system/vendors/swift/classes/Swift/KeyCache/ArrayKeyCache.php
Author: Chris Corbyn
Located at wa-system/vendors/swift/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. |
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 | array() |
#
Cache contents. |
private
|
$_stream |
|
#
An InputStream for cloning. |