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