Skip to content

Commit 867d01b

Browse files
authored
Update LaravelCache.php
1 parent eb9877b commit 867d01b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Utils/LaravelCache.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,19 @@ public static function rememberForever(string $cacheKey, callable|Carbon $cacheT
5858
{
5959
return LaravelCache::remember($cacheKey, $cacheTime, $callable, true);
6060
}
61+
62+
public function get(string $cacheKey): mixed
63+
{
64+
return Cache::get($cacheKey);
65+
}
66+
67+
public function forget(string $cacheKey): bool
68+
{
69+
return Cache::forget($cacheKey);
70+
}
71+
72+
public function pull(string $cacheKey): mixed
73+
{
74+
return Cache::pull($cacheKey);
75+
}
6176
}

0 commit comments

Comments
 (0)