@@ -26,16 +26,16 @@ public function initialize();
2626 *
2727 * @param string $key Cache item name
2828 *
29- * @return mixed
29+ * @return array|bool|float|int|object|string|null
3030 */
3131 public function get (string $ key );
3232
3333 /**
3434 * Saves an item to the cache store.
3535 *
36- * @param string $key Cache item name
37- * @param mixed $value The data to save
38- * @param int $ttl Time To Live, in seconds (default 60)
36+ * @param string $key Cache item name
37+ * @param array|bool|float|int|object|string|null $value The data to save
38+ * @param int $ttl Time To Live, in seconds (default 60)
3939 *
4040 * @return bool Success or failure
4141 */
@@ -56,7 +56,7 @@ public function delete(string $key);
5656 * @param string $key Cache ID
5757 * @param int $offset Step/value to increase by
5858 *
59- * @return mixed
59+ * @return bool|int
6060 */
6161 public function increment (string $ key , int $ offset = 1 );
6262
@@ -66,7 +66,7 @@ public function increment(string $key, int $offset = 1);
6666 * @param string $key Cache ID
6767 * @param int $offset Step/value to increase by
6868 *
69- * @return mixed
69+ * @return bool|int
7070 */
7171 public function decrement (string $ key , int $ offset = 1 );
7272
@@ -83,7 +83,7 @@ public function clean();
8383 * The information returned and the structure of the data
8484 * varies depending on the handler.
8585 *
86- * @return mixed
86+ * @return array|bool|float|int|object|string|null
8787 */
8888 public function getCacheInfo ();
8989
0 commit comments