TP框架里怎么扩展redis操作

TP框架里怎么扩展redis操作?通过扩展redis类?操作redis就像操作mysql数据库一样

https://github.com/liu21st/thinkphp/blob/master/ThinkPHP/Library/Think/Cache/Driver/Redis.class.php

http://www.thinkphp.cn/extend/501.html

如果是TP5的话,参考:Thinkphp5怎么扩展Redis数据库,实现Redis的CURD操作