1 | <?php |
||
35 | class ArrayStorage extends AbstractStorage |
||
36 | { |
||
37 | |||
38 | /** |
||
39 | * Injects the \Stackable storage handler into the instance. |
||
40 | */ |
||
41 | public function __construct() |
||
48 | |||
49 | /** |
||
50 | * (non-PHPdoc) |
||
51 | * |
||
52 | * @return void |
||
53 | * @see \AppserverIo\Storage\AbstractStorage::init() |
||
54 | */ |
||
55 | public function init() |
||
59 | |||
60 | /** |
||
61 | * (non-PHPdoc) |
||
62 | * |
||
63 | * @param string $entryIdentifier Something which identifies the data - depends on concrete cache |
||
64 | * @param mixed $data The data to cache - also depends on the concrete cache implementation |
||
65 | * @param array $tags Tags to associate with this cache entry |
||
66 | * @param integer $lifetime Lifetime of this cache entry in seconds. If NULL is specified, |
||
67 | * the default lifetime is used. "0" means unlimited lifetime. |
||
68 | * |
||
69 | * @return void |
||
70 | * |
||
71 | * @see \AppserverIo\Storage\StorageInterface::set() |
||
72 | */ |
||
73 | public function set($entryIdentifier, $data, array $tags = array(), $lifetime = null) |
||
95 | |||
96 | /** |
||
97 | * (non-PHPdoc) |
||
98 | * |
||
99 | * @param string $entryIdentifier Something which identifies the cache entry - depends on concrete cache |
||
100 | * |
||
101 | * @return mixed |
||
102 | * @see \AppserverIo\Storage\StorageInterface::get() |
||
103 | */ |
||
104 | public function get($entryIdentifier) |
||
108 | |||
109 | /** |
||
110 | * (non-PHPdoc) |
||
111 | * |
||
112 | * @param string $entryIdentifier An identifier specifying the cache entry |
||
113 | * |
||
114 | * @return boolean TRUE if such an entry exists, FALSE if not |
||
115 | * @see \AppserverIo\Storage\StorageInterface::has() |
||
116 | */ |
||
117 | public function has($entryIdentifier) |
||
121 | |||
122 | /** |
||
123 | * (non-PHPdoc) |
||
124 | * |
||
125 | * @param string $entryIdentifier An identifier specifying the cache entry |
||
126 | * |
||
127 | * @return boolean TRUE if such an entry exists, FALSE if not |
||
128 | * @see \AppserverIo\Storage\StorageInterface::remove() |
||
129 | */ |
||
130 | public function remove($entryIdentifier) |
||
138 | |||
139 | /** |
||
140 | * (non-PHPdoc) |
||
141 | * |
||
142 | * @return array |
||
143 | * @see \AppserverIo\Storage\StorageInterface::getAllKeys() |
||
144 | */ |
||
145 | public function getAllKeys() |
||
153 | } |
||
154 |