|
@@ -58,7 +58,7 @@ discard block |
|
|
block discarded – undo |
|
58
|
58
|
* Fetches a value from the cache. |
|
59
|
59
|
* |
|
60
|
60
|
* @param string $key The unique key of this item in the cache. |
|
61
|
|
- * @param mixed $default Default value to return if the key does not exist. |
|
|
61
|
+ * @param \stdClass $default Default value to return if the key does not exist. |
|
62
|
62
|
* |
|
63
|
63
|
* @return mixed The value of the item from the cache, or $default in case of cache miss. |
|
64
|
64
|
* |
|
@@ -132,8 +132,8 @@ discard block |
|
|
block discarded – undo |
|
132
|
132
|
/** |
|
133
|
133
|
* Obtains multiple cache items by their unique keys. |
|
134
|
134
|
* |
|
135
|
|
- * @param iterable $keys A list of keys that can obtained in a single operation. |
|
136
|
|
- * @param mixed $default Default value to return for keys that do not exist. |
|
|
135
|
+ * @param string[] $keys A list of keys that can obtained in a single operation. |
|
|
136
|
+ * @param \stdClass $default Default value to return for keys that do not exist. |
|
137
|
137
|
* |
|
138
|
138
|
* @return array List of key => value pairs. Cache keys that do not exist or are stale will have $default as value. |
|
139
|
139
|
* |
|
@@ -156,7 +156,7 @@ discard block |
|
|
block discarded – undo |
|
156
|
156
|
* Persists a set of key => value pairs in the cache, with an optional TTL. |
|
157
|
157
|
* |
|
158
|
158
|
* @param iterable $values A list of key => value pairs for a multiple-set operation. |
|
159
|
|
- * @param null|integer|DateInterval $ttl Optional. The TTL value of this item. If no value is sent and |
|
|
159
|
+ * @param integer $ttl Optional. The TTL value of this item. If no value is sent and |
|
160
|
160
|
* the driver supports TTL then the library may set a default value |
|
161
|
161
|
* for it or let the driver take care of that. |
|
162
|
162
|
* |
|
@@ -181,7 +181,7 @@ discard block |
|
|
block discarded – undo |
|
181
|
181
|
/** |
|
182
|
182
|
* Deletes multiple cache items in a single operation. |
|
183
|
183
|
* |
|
184
|
|
- * @param iterable $keys A list of string-based keys to be deleted. |
|
|
184
|
+ * @param string[] $keys A list of string-based keys to be deleted. |
|
185
|
185
|
* |
|
186
|
186
|
* @return boolean True if the items were successfully removed. False if there was an error. |
|
187
|
187
|
* |