📜  laravel 缓存 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:49.600000             🧑  作者: Mango

代码示例6
Cache::put('key', 'value', $seconds);
Cache::rememberForever('users', function () {
    return DB::table('users')->get();
}); 
Cache::get('key');
Cache::has('key');
Cache::pull('key');