@@ -55,10 +55,10 @@ public function clear();
55
55
/**
56
56
* Obtains multiple cache items by their unique keys.
57
57
*
58
- * @param array|\Traversable $keys A list of keys that can obtained in a single operation.
59
- * @param mixed $default Default value to return for keys that do not exist.
58
+ * @param iterable $keys A list of keys that can obtained in a single operation.
59
+ * @param mixed $default Default value to return for keys that do not exist.
60
60
*
61
- * @return array|\Traversable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
61
+ * @return iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
62
62
*
63
63
* @throws \Psr\SimpleCache\InvalidArgumentException
64
64
* MUST be thrown if $keys is neither an array nor a Traversable,
@@ -69,7 +69,7 @@ public function getMultiple($keys, $default = null);
69
69
/**
70
70
* Persists a set of key => value pairs in the cache, with an optional TTL.
71
71
*
72
- * @param array|\Traversable $values A list of key => value pairs for a multiple-set operation.
72
+ * @param iterable $values A list of key => value pairs for a multiple-set operation.
73
73
* @param null|int|DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
74
74
* the driver supports TTL then the library may set a default value
75
75
* for it or let the driver take care of that.
@@ -85,9 +85,9 @@ public function setMultiple($values, $ttl = null);
85
85
/**
86
86
* Deletes multiple cache items in a single operation.
87
87
*
88
- * @param array|\Traversable $keys A list of string-based keys to be deleted.
88
+ * @param iterable $keys A list of string-based keys to be deleted.
89
89
*
90
- * @return bool True if the item was successfully removed. False if there was an error.
90
+ * @return bool True if the items were successfully removed. False if there was an error.
91
91
*
92
92
* @throws \Psr\SimpleCache\InvalidArgumentException
93
93
* MUST be thrown if $keys is neither an array nor a Traversable,
0 commit comments