TYPO3  7.6
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 
16 interface Swift_KeyCache
17 {
19  const MODE_WRITE = 1;
20 
22  const MODE_APPEND = 2;
23 
34  public function setString($nsKey, $itemKey, $string, $mode);
35 
46  public function importFromByteStream($nsKey, $itemKey, Swift_OutputByteStream $os, $mode);
47 
60  public function getInputByteStream($nsKey, $itemKey, Swift_InputByteStream $is = null);
61 
70  public function getString($nsKey, $itemKey);
71 
79  public function exportToByteStream($nsKey, $itemKey, Swift_InputByteStream $is);
80 
89  public function hasKey($nsKey, $itemKey);
90 
97  public function clearKey($nsKey, $itemKey);
98 
104  public function clearAll($nsKey);
105 }