Interface Swift_KeyCache
Provides a mechanism for storing data using two keys.
Direct known implementers
Swift_KeyCache_ArrayKeyCache, Swift_KeyCache_DiskKeyCache, Swift_KeyCache_DummyKeyCache, Swift_KeyCache_NullKeyCache
Package: Swift\KeyCache
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/KeyCache.php
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/KeyCache.php
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. If the optional third parameter is passed all writes will go through $is. |
public
string
|
|
public
|
#
exportToByteStream( string $nsKey, string $itemKey,
Get data back out of the cache as a ByteStream. |
public
boolean
|
|
public
|
|
public
|
integer |
MODE_WRITE
Mode for replacing existing cached data |
#
1
|
integer |
MODE_APPEND
Mode for appending data to the end of existing cached data |
#
2
|