未验证 提交 be98799a 编写于 作者: lzc828's avatar lzc828 提交者: GitHub

Update README.md

上级 f058ca39
...@@ -117,9 +117,12 @@ $r = user::where('id',1)->update(['name' => 'aaa']); ...@@ -117,9 +117,12 @@ $r = user::where('id',1)->update(['name' => 'aaa']);
## 缓存 ## 缓存
```php ```php
// 设置缓存 // 设置缓存 无过期时间
Cache::set('ccc',1); Cache::set('ccc',1);
// 设置缓存 1分钟过期
Cache::set('ccc',1,60);
// 获取 // 获取
Cache::get('ccc'); Cache::get('ccc');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册