Laravel Cache 緩存使用

導入:use Cache;html   Cache::put('key', 'value', $minutes); 添加一個緩存laravel   Cache 門面的 get 方法用於從緩存中獲取緩存項,若是緩存項不存在,返回 null。若是須要的話你能夠傳遞第二個參數到 get 方法指定緩存項不存在時返回的自定義默認值:緩存   Cache::get('key');   post   Cache
相關文章
相關標籤/搜索