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
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/KeyCache.php
Methods summary
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. 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
|
#
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
|
Magic methods summary
Constants summary
integer |
MODE_WRITE |
1 |
#
Mode for replacing existing cached data |
integer |
MODE_APPEND |
2 |
#
Mode for appending data to the end of existing cached data |