\Swift_KeyCache
Provides a mechanism for storing data using two keys.
- Author: Chris Corbyn
Synopsis
interface Swift_KeyCache
{
- // constants
- const MODE_WRITE = 1;
- const MODE_APPEND = 2;
- // methods
- public void setString()
- public void importFromByteStream()
- public Swift_InputByteStream getInputByteStream()
- public string getString()
- public void exportToByteStream()
- public boolean hasKey()
- public void clearKey()
- public void clearAll()
Constants
Name | Value |
---|---|
MODE_WRITE | 1 |
MODE_APPEND | 2 |
Methods
public
- clearAll() — Clear all data in the namespace $nsKey if it exists.
- clearKey() — Clear data for $itemKey in the namespace $nsKey if it exists.
- exportToByteStream() — Get data back out of the cache as a ByteStream.
- getInputByteStream() — Provides a ByteStream which when written to, writes data to $itemKey.
- getString() — Get data back out of the cache as a string.
- hasKey() — Check if the given $itemKey exists in the namespace $nsKey.
- importFromByteStream() — Set a ByteStream into the cache under $itemKey for the namespace $nsKey.
- setString() — Set a string into the cache under $itemKey for the namespace $nsKey.