framework icon indicating copy to clipboard operation
framework copied to clipboard

tp6缓存redis没起作用,还是file缓存

Open fredyzhang5532 opened this issue 4 years ago • 1 comments

Cache::store('redis')->set('sdsd','888888888888'); Cache.php配置redis 'stores' => [ 'file' => [ // 驱动方式 'type' => 'File', // 缓存保存目录 'path' => '', // 缓存前缀 'prefix' => '', // 缓存有效期 0表示永久缓存 'expire' => 0, // 缓存标签前缀 'tag_prefix' => 'tag:', // 序列化机制 例如 ['serialize', 'unserialize'] 'serialize' => [], ], 'redis' => [ 'type'>'redis', 'host' => '127.0.0.1', 'port' => 6379, 'password' => 'yzhua.ml', 'select' => 5, 'timeout' => 0, 'expire' => 36000, 'persistent' => false, 'prefix' => 'tp6_',

], 缓存redis没起作用,还是file缓存

fredyzhang5532 avatar Aug 20 '20 07:08 fredyzhang5532

解决了吗

a6965921 avatar Feb 20 '23 01:02 a6965921

ThinkPHP 6.1.4 未复现

big-dream avatar Mar 13 '24 02:03 big-dream