@@ -106,6 +106,7 @@ public function missing($key)
106106 *
107107 * @param array|string $key
108108 * @param mixed $default
109+ * @return mixed
109110 */
110111 public function get ($ key , $ default = null ): mixed
111112 {
@@ -250,6 +251,8 @@ public function put($key, $value, $ttl = null)
250251
251252 /**
252253 * {@inheritdoc}
254+ *
255+ * @return bool
253256 */
254257 public function set ($ key , $ value , $ ttl = null ): bool
255258 {
@@ -259,6 +262,7 @@ public function set($key, $value, $ttl = null): bool
259262 /**
260263 * Store multiple items in the cache for a given number of seconds.
261264 *
265+ * @param array $values
262266 * @param \DateTimeInterface|\DateInterval|int|null $ttl
263267 * @return bool
264268 */
@@ -292,6 +296,7 @@ public function putMany(array $values, $ttl = null)
292296 /**
293297 * Store multiple items in the cache indefinitely.
294298 *
299+ * @param array $values
295300 * @return bool
296301 */
297302 protected function putManyForever (array $ values )
@@ -526,7 +531,7 @@ public function flexible($key, $ttl, $callback, $lock = null)
526531 public function touch (string $ key , \DateTimeInterface |\DateInterval |int |null $ ttl = null ): bool
527532 {
528533 $ value = $ this ->get ($ key );
529-
534+
530535 if (is_null ($ value )) {
531536 return false ;
532537 }
@@ -557,6 +562,8 @@ public function forget($key)
557562
558563 /**
559564 * {@inheritdoc}
565+ *
566+ * @return bool
560567 */
561568 public function delete ($ key ): bool
562569 {
@@ -565,6 +572,8 @@ public function delete($key): bool
565572
566573 /**
567574 * {@inheritdoc}
575+ *
576+ * @return bool
568577 */
569578 public function deleteMultiple ($ keys ): bool
570579 {
@@ -581,6 +590,8 @@ public function deleteMultiple($keys): bool
581590
582591 /**
583592 * {@inheritdoc}
593+ *
594+ * @return bool
584595 */
585596 public function clear (): bool
586597 {
@@ -742,6 +753,7 @@ public function getEventDispatcher()
742753 /**
743754 * Set the event dispatcher instance.
744755 *
756+ * @param \Illuminate\Contracts\Events\Dispatcher $events
745757 * @return void
746758 */
747759 public function setEventDispatcher (Dispatcher $ events )
@@ -753,6 +765,7 @@ public function setEventDispatcher(Dispatcher $events)
753765 * Determine if a cached value exists.
754766 *
755767 * @param string $key
768+ * @return bool
756769 */
757770 public function offsetExists ($ key ): bool
758771 {
@@ -763,6 +776,7 @@ public function offsetExists($key): bool
763776 * Retrieve an item from the cache by key.
764777 *
765778 * @param string $key
779+ * @return mixed
766780 */
767781 public function offsetGet ($ key ): mixed
768782 {
@@ -774,6 +788,7 @@ public function offsetGet($key): mixed
774788 *
775789 * @param string $key
776790 * @param mixed $value
791+ * @return void
777792 */
778793 public function offsetSet ($ key , $ value ): void
779794 {
@@ -784,6 +799,7 @@ public function offsetSet($key, $value): void
784799 * Remove an item from the cache.
785800 *
786801 * @param string $key
802+ * @return void
787803 */
788804 public function offsetUnset ($ key ): void
789805 {
0 commit comments