定制 yiovo/tp6-cache 二次开发
按需修改功能、优化性能、对接业务系统,提供一站式技术支持
邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316
最新稳定版本:v1.0.5
Composer 安装命令:
composer require yiovo/tp6-cache
tp6-cache
thinkphp6 缓存类 (二次开发版)
Cache::ttl(string $name) 获取缓存剩余有效期(秒)
Cache::ttl(string $name)
Cache::update(string $name, $newVal, bool $isMerge = true) 更新缓存内容 (该方法区别于set方法,set方法不支持更新内容同时保留缓存剩余有效期)
Cache::update(string $name, $newVal, bool $isMerge = true)