1 | <?php |
||
21 | class None |
||
22 | extends \Aimeos\MW\Cache\Base |
||
|
|||
23 | implements \Aimeos\MW\Cache\Iface |
||
24 | { |
||
25 | /** |
||
26 | * Removes the cache entry identified by the given key. |
||
27 | * |
||
28 | * @param string $key Key string that identifies the single cache entry |
||
29 | */ |
||
30 | public function delete( $key ) |
||
33 | |||
34 | |||
35 | /** |
||
36 | * Removes the cache entries identified by the given keys. |
||
37 | * |
||
38 | * @param iterable $keys List of key strings that identify the cache entries |
||
39 | * that should be removed |
||
40 | */ |
||
41 | public function deleteMultiple( $keys ) |
||
42 | { |
||
43 | } |
||
44 | |||
45 | |||
46 | /** |
||
47 | * Removes the cache entries identified by the given tags. |
||
48 | * |
||
49 | * @param array $tags List of tag strings that are associated to one or more |
||
50 | * cache entries that should be removed |
||
51 | */ |
||
52 | public function deleteByTags( array $tags ) |
||
55 | |||
56 | |||
57 | /** |
||
58 | * Removes all entries from the cache so it's completely empty. |
||
59 | * |
||
60 | * This method deletes all cached entries from the cache server the client |
||
61 | * has access to. This method is primarily usefull to provide a clean start |
||
62 | * before new entries are added to the cache and you don't know which |
||
63 | * entries are still in the cache. |
||
64 | * |
||
65 | * @throws \Aimeos\MW\Cache\Exception If the cache server doesn't respond |
||
66 | */ |
||
67 | public function clear() |
||
68 | { |
||
69 | } |
||
70 | |||
71 | |||
72 | /** |
||
73 | * Returns the value of the requested cache key. |
||
74 | * |
||
75 | * @param string $name Path to the requested value like tree/node/classname |
||
76 | * @param mixed $default Value returned if requested key isn't found |
||
77 | * @return mixed Value associated to the requested key |
||
78 | */ |
||
79 | public function get( $name, $default = null ) |
||
83 | |||
84 | |||
85 | /** |
||
86 | * Returns the cached values for the given cache keys. |
||
87 | * |
||
88 | * @param iterable $keys List of key strings for the requested cache entries |
||
89 | * @param mixed $default Default value to return for keys that do not exist |
||
90 | * @return array Associative list of key/value pairs for the requested cache |
||
91 | * entries. If a cache entry doesn't exist, neither its key nor a value |
||
92 | * will be in the result list |
||
93 | */ |
||
94 | public function getMultiple( $keys, $default = null ) |
||
104 | |||
105 | |||
106 | /** |
||
107 | * Returns the cached keys and values associated to the given tags. |
||
108 | * |
||
109 | * @param array $tags List of tag strings associated to the requested cache entries |
||
110 | * @return array Associative list of key/value pairs for the requested cache |
||
111 | * entries. If a tag isn't associated to any cache entry, nothing is returned |
||
112 | * for that tag |
||
113 | */ |
||
114 | public function getMultipleByTags( array $tags ) |
||
118 | |||
119 | |||
120 | /** |
||
121 | * Sets the value for the specified key. |
||
122 | * |
||
123 | * @param string $key Key string for the given value like product/id/123 |
||
124 | * @param mixed $value Value string that should be stored for the given key |
||
125 | * @param int|string|null $expires Date/time string in "YYYY-MM-DD HH:mm:ss" |
||
126 | * format or as TTL value when the cache entry expires |
||
127 | * @param array $tags List of tag strings that should be assoicated to the |
||
128 | * given value in the cache |
||
129 | */ |
||
130 | public function set( $key, $value, $expires = null, array $tags = array() ) |
||
133 | |||
134 | |||
135 | /** |
||
136 | * Adds the given key/value pairs to the cache. |
||
137 | * |
||
138 | * @param iterable $pairs Associative list of key/value pairs. Both must be |
||
139 | * a string |
||
140 | * @param int|string|array $expires Associative list of keys and datetime |
||
141 | * string or integer TTL pairs. |
||
142 | * @param array $tags Associative list of key/tag or key/tags pairs that |
||
143 | * should be associated to the values identified by their key. The value |
||
144 | * associated to the key can either be a tag string or an array of tag strings |
||
145 | * @return null |
||
146 | * @throws \Aimeos\MW\Cache\Exception If the cache server doesn't respond |
||
147 | */ |
||
148 | public function setMultiple( $pairs, $expires = null, array $tags = array() ) |
||
151 | } |
||
152 |