如何为ThinkPHP5的Redis缓存系统添加自定义方法实例?
- 内容介绍
- 文章标签
- 相关推荐
本文共计279个文字,预计阅读时间需要2分钟。
找到文件 thinkphp/library/think/cache/driver/Redis.php,进行新增方法。以下是一个示例:
phppublic function lrange($key, $start, $end){ return $this->connection->lrange($key, $start, $end);}
更多关于Redis的教程,请查看相关资料。
本文共计279个文字,预计阅读时间需要2分钟。
找到文件 thinkphp/library/think/cache/driver/Redis.php,进行新增方法。以下是一个示例:
phppublic function lrange($key, $start, $end){ return $this->connection->lrange($key, $start, $end);}
更多关于Redis的教程,请查看相关资料。

