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: /**
12: * A null KeyCache that does not cache at all.
13: * @package Swift
14: * @subpackage KeyCache
15: * @author Chris Corbyn
16: */
17: class Swift_KeyCache_NullKeyCache implements Swift_KeyCache
18: {
19: /**
20: * Set a string into the cache under $itemKey for the namespace $nsKey.
21: * @param string $nsKey
22: * @param string $itemKey
23: * @param string $string
24: * @param int $mode
25: * @see MODE_WRITE, MODE_APPEND
26: */
27: public function setString($nsKey, $itemKey, $string, $mode)
28: {
29: }
30:
31: /**
32: * Set a ByteStream into the cache under $itemKey for the namespace $nsKey.
33: * @param string $nsKey
34: * @param string $itemKey
35: * @param Swift_OutputByteStream $os
36: * @param int $mode
37: * @see MODE_WRITE, MODE_APPEND
38: */
39: public function importFromByteStream($nsKey, $itemKey, Swift_OutputByteStream $os, $mode)
40: {
41: }
42:
43: /**
44: * Provides a ByteStream which when written to, writes data to $itemKey.
45: * NOTE: The stream will always write in append mode.
46: * @param string $nsKey
47: * @param string $itemKey
48: * @return Swift_InputByteStream
49: */
50: public function getInputByteStream($nsKey, $itemKey, Swift_InputByteStream $writeThrough = null)
51: {
52: }
53:
54: /**
55: * Get data back out of the cache as a string.
56: * @param string $nsKey
57: * @param string $itemKey
58: * @return string
59: */
60: public function getString($nsKey, $itemKey)
61: {
62: }
63:
64: /**
65: * Get data back out of the cache as a ByteStream.
66: * @param string $nsKey
67: * @param string $itemKey
68: * @param Swift_InputByteStream $is to write the data to
69: */
70: public function exportToByteStream($nsKey, $itemKey, Swift_InputByteStream $is)
71: {
72: }
73:
74: /**
75: * Check if the given $itemKey exists in the namespace $nsKey.
76: * @param string $nsKey
77: * @param string $itemKey
78: * @return boolean
79: */
80: public function hasKey($nsKey, $itemKey)
81: {
82: return false;
83: }
84:
85: /**
86: * Clear data for $itemKey in the namespace $nsKey if it exists.
87: * @param string $nsKey
88: * @param string $itemKey
89: */
90: public function clearKey($nsKey, $itemKey)
91: {
92: }
93:
94: /**
95: * Clear all data in the namespace $nsKey if it exists.
96: * @param string $nsKey
97: */
98: public function clearAll($nsKey)
99: {
100: }
101: }
102: