redis和cache 都是用了redis扩展,。那么他们有啥区别呢。

3030879494@qq.com

redis和cache 都是用了redis扩展,。那么他们有啥区别呢。

https://www.workerman.net/doc/webman/db/redis.html
https://www.workerman.net/doc/webman/db/cache.html

是因为cache支持其他形式的缓存方式吗,比如文件形式,而redis只能是redis?但是我没看到文档上有cache支持其他形式的写法啊。我没有用过laravel。

399 1 0
1个回答

小Z先生

简单来说是
1.redis是一个redis客户端,只能操作redis
2.cache是一个缓存管理器,可以使用redis也可以使用其他的缓存适配器比如文件,Memcached

  • 暂无评论
×
🔝