Laravel Cache 缓存使用

导入:use Cache;html   Cache::put('key', 'value', $minutes); 添加一个缓存laravel   Cache 门面的 get 方法用于从缓存中获取缓存项,若是缓存项不存在,返回 null。若是须要的话你能够传递第二个参数到 get 方法指定缓存项不存在时返回的自定义默认值:缓存   Cache::get('key');   post   Cache
相关文章
相关标签/搜索