XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
KeyCache.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of SwiftMailer.
5  * (c) 2004-2009 Chris Corbyn
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10 
11 //@require 'Swift/InputByteStream.php';
12 //@require 'Swift/OutputByteStream.php';
13 
20 interface Swift_KeyCache
21 {
22 
24  const MODE_WRITE = 1;
25 
27  const MODE_APPEND = 2;
28 
37  public function setString($nsKey, $itemKey, $string, $mode);
38 
47  public function importFromByteStream($nsKey, $itemKey, Swift_OutputByteStream $os,
48  $mode);
49 
59  public function getInputByteStream($nsKey, $itemKey,
60  Swift_InputByteStream $is = null);
61 
68  public function getString($nsKey, $itemKey);
69 
76  public function exportToByteStream($nsKey, $itemKey, Swift_InputByteStream $is);
77 
84  public function hasKey($nsKey, $itemKey);
85 
91  public function clearKey($nsKey, $itemKey);
92 
97  public function clearAll($nsKey);
98 
99 }