@@ -55,10 +55,10 @@ public function clear();
5555 /**
5656 * Obtains multiple cache items by their unique keys.
5757 *
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.
6060 *
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.
6262 *
6363 * @throws \Psr\SimpleCache\InvalidArgumentException
6464 * MUST be thrown if $keys is neither an array nor a Traversable,
@@ -69,7 +69,7 @@ public function getMultiple($keys, $default = null);
6969 /**
7070 * Persists a set of key => value pairs in the cache, with an optional TTL.
7171 *
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.
7373 * @param null|int|DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
7474 * the driver supports TTL then the library may set a default value
7575 * for it or let the driver take care of that.
@@ -85,9 +85,9 @@ public function setMultiple($values, $ttl = null);
8585 /**
8686 * Deletes multiple cache items in a single operation.
8787 *
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.
8989 *
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.
9191 *
9292 * @throws \Psr\SimpleCache\InvalidArgumentException
9393 * MUST be thrown if $keys is neither an array nor a Traversable,
0 commit comments