1 | <?php |
||
32 | class ApcuStorage extends AbstractStorage |
||
33 | { |
||
34 | |||
35 | /** |
||
36 | * Initializes the storage when the instance is constructed and the __wakeup() method is invoked. |
||
37 | * |
||
38 | * @return void |
||
39 | * @see AppserverIo\Storage\AbstractStorage::init(); |
||
40 | */ |
||
41 | public function init() |
||
45 | |||
46 | /** |
||
47 | * (non-PHPdoc) |
||
48 | * |
||
49 | * @param string $entryIdentifier Something which identifies the data - depends on concrete cache |
||
50 | * @param mixed $data The data to cache - also depends on the concrete cache implementation |
||
51 | * @param array $tags Tags to associate with this cache entry |
||
52 | * @param integer $lifetime Lifetime of this cache entry in seconds. |
||
53 | * If NULL is specified, the default lifetime is used. "0" means unlimited lifetime. |
||
54 | * |
||
55 | * @return void |
||
56 | * |
||
57 | * @see \AppserverIo\Storage\StorageInterface::set() |
||
58 | */ |
||
59 | public function set($entryIdentifier, $data, array $tags = array(), $lifetime = null) |
||
77 | |||
78 | /** |
||
79 | * (non-PHPdoc) |
||
80 | * |
||
81 | * @param string $entryIdentifier Something which identifies the cache entry - depends on concrete cache |
||
82 | * |
||
83 | * @return mixed |
||
84 | * @see \AppserverIo\Storage\StorageInterface::get() |
||
85 | */ |
||
86 | public function get($entryIdentifier) |
||
90 | |||
91 | /** |
||
92 | * (non-PHPdoc) |
||
93 | * |
||
94 | * @param string $entryIdentifier An identifier specifying the cache entry |
||
95 | * |
||
96 | * @return boolean TRUE if such an entry exists, FALSE if not |
||
97 | * @see \AppserverIo\Storage\StorageInterface::has() |
||
98 | */ |
||
99 | public function has($entryIdentifier) |
||
103 | |||
104 | /** |
||
105 | * (non-PHPdoc) |
||
106 | * |
||
107 | * @param string $entryIdentifier An identifier specifying the cache entry |
||
108 | * |
||
109 | * @return boolean TRUE if such an entry exists, FALSE if not |
||
110 | * @see \AppserverIo\Storage\StorageInterface::remove() |
||
111 | */ |
||
112 | public function remove($entryIdentifier) |
||
116 | |||
117 | /** |
||
118 | * (non-PHPdoc) |
||
119 | * |
||
120 | * @return array |
||
121 | * @see \AppserverIo\Storage\StorageInterface::getAllKeys() |
||
122 | */ |
||
123 | public function getAllKeys() |
||
132 | } |
||
133 |