Class Swift_KeyCache_DiskKeyCache
A KeyCache which streams to and from disk.
- Swift_KeyCache_DiskKeyCache implements Swift_KeyCache
Package: Swift\KeyCache
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/KeyCache/DiskKeyCache.php
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/KeyCache/DiskKeyCache.php
public
|
#
__construct(
Create a new DiskKeyCache with the given $stream for cloning to make InputByteStreams, and the given $path to save to. |
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
|
|
private
resource
|
#
_getHandle( string $nsKey, string $itemKey, integer $position )
Get a file handle on the cache item. |
private
|
|
public
|
integer |
POSITION_START
Signal to place pointer at start of file |
#
0
|
integer |
POSITION_END
Signal to place pointer at end of file |
#
1
|
integer |
POSITION_CURRENT
Signal to leave pointer in whatever position it currently is |
#
2
|
MODE_APPEND,
MODE_WRITE
|
private
|
$_stream
An InputStream for cloning. |
|
private
string
|
$_path
A path to write to. |
|
private
array
|
$_keys
Stored keys. |
#
array()
|
private
boolean
|
$_quotes
Will be true if magic_quotes_runtime is turned on. |
#
false
|