Skip to content

Commit 8511cbe

Browse files
authored
Update LaravelCache.php
1 parent 28bff9e commit 8511cbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utils/LaravelCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static function remember(string $cacheKey, callable|Carbon $cacheTime = n
3030
// 使用默认缓存时间
3131
if (is_callable($cacheTime)) {
3232
$callable = $cacheTime;
33-
$cacheTime = now()->addSeconds(CacheUtility::DEFAULT_CACHE_TIME);
33+
$cacheTime = now()->addSeconds(LaravelCache::DEFAULT_CACHE_TIME);
3434
}
3535

3636
if ($forever) {
@@ -56,6 +56,6 @@ public static function remember(string $cacheKey, callable|Carbon $cacheTime = n
5656
*/
5757
public static function rememberForever(string $cacheKey, callable|Carbon $cacheTime = null, callable $callable = null)
5858
{
59-
return CacheUtility::remember($cacheKey, $cacheTime, $callable, true);
59+
return LaravelCache::remember($cacheKey, $cacheTime, $callable, true);
6060
}
6161
}

0 commit comments

Comments
 (0)