1 | <?php |
||
37 | class StackableStorage extends GenericStackable implements StorageInterface |
||
|
|||
38 | { |
||
39 | |||
40 | /** |
||
41 | * Register the trait that provides basic storage functionality. |
||
42 | * |
||
43 | * @var \Trait |
||
44 | */ |
||
45 | use StorageTrait; |
||
46 | |||
47 | /** |
||
48 | * Passes the configuration and initializes the storage. |
||
49 | * |
||
50 | * The identifier will be set after the init() function has been invoked, so it'll overwrite the one |
||
51 | * specified in the configuration if set. |
||
52 | * |
||
53 | * @return void |
||
54 | */ |
||
55 | public function __construct() |
||
59 | |||
60 | /** |
||
61 | * (non-PHPdoc) |
||
62 | * |
||
63 | * @return void |
||
64 | * @see \AppserverIo\Storage\StorageInterface::collectGarbage() |
||
65 | */ |
||
66 | public function collectGarbage() |
||
70 | |||
71 | /** |
||
72 | * (non-PHPdoc) |
||
73 | * |
||
74 | * @param string $tag The tag to search for |
||
75 | * |
||
76 | * @return array An array with the identifier (key) and content (value) of all matching entries. An empty array if no entries matched |
||
77 | * @see \AppserverIo\Storage\StorageInterface::getByTag() |
||
78 | */ |
||
79 | public function getByTag($tag) |
||
83 | |||
84 | /** |
||
85 | * (non-PHPdoc) |
||
86 | * |
||
87 | * @return mixed The storage object itself |
||
88 | * @see \AppserverIo\Storage\StorageInterface::getStorage() |
||
89 | */ |
||
90 | public function getStorage() |
||
94 | |||
95 | /** |
||
96 | * (non-PHPdoc) |
||
97 | * |
||
98 | * @param string $entryIdentifier Something which identifies the data - depends on concrete cache |
||
99 | * @param mixed $data The data to cache - also depends on the concrete cache implementation |
||
100 | * @param array $tags Tags to associate with this cache entry |
||
101 | * @param integer $lifetime Lifetime of this cache entry in seconds. If NULL is specified, |
||
102 | * the default lifetime is used. "0" means unlimited lifetime. |
||
103 | * |
||
104 | * @return void |
||
105 | * |
||
106 | * @see \AppserverIo\Storage\StorageInterface::set() |
||
107 | */ |
||
108 | public function set($entryIdentifier, $data, array $tags = array(), $lifetime = null) |
||
130 | |||
131 | /** |
||
132 | * (non-PHPdoc) |
||
133 | * |
||
134 | * @param string $entryIdentifier Something which identifies the cache entry - depends on concrete cache |
||
135 | * |
||
136 | * @return mixed |
||
137 | * @see \AppserverIo\Storage\StorageInterface::get() |
||
138 | */ |
||
139 | public function get($entryIdentifier) |
||
143 | |||
144 | /** |
||
145 | * (non-PHPdoc) |
||
146 | * |
||
147 | * @param string $entryIdentifier An identifier specifying the cache entry |
||
148 | * |
||
149 | * @return boolean TRUE if such an entry exists, FALSE if not |
||
150 | * @see \AppserverIo\Storage\StorageInterface::has() |
||
151 | */ |
||
152 | public function has($entryIdentifier) |
||
156 | |||
157 | /** |
||
158 | * (non-PHPdoc) |
||
159 | * |
||
160 | * @param string $entryIdentifier An identifier specifying the cache entry |
||
161 | * |
||
162 | * @return boolean TRUE if such an entry exists, FALSE if not |
||
163 | * @see \AppserverIo\Storage\StorageInterface::remove() |
||
164 | */ |
||
165 | public function remove($entryIdentifier) |
||
173 | |||
174 | /** |
||
175 | * (non-PHPdoc) |
||
176 | * |
||
177 | * @return array |
||
178 | * @see \AppserverIo\Storage\StorageInterface::getAllKeys() |
||
179 | */ |
||
180 | public function getAllKeys() |
||
188 | } |
||
189 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.