节点应用程序还连接到Redis DB进行缓存检查。API经常会停止工作,并在永久日志中显示以下错误。/node_modules/redis-parser/lib/parser.js:193:12)
at parseType (/home/myapp/core/node_modules/redis/node_modules/redis/node_modules/r
我目前正在研究Redis,以便通过UNIX套接字检索数据。
我已经通过定义redis.sock的路径(在我的例子中是/tmp/redis.sock)更新了redis.conf文件以反映这一点。使用Spring Data Redis (通过JedisConnectionFactory),我可以看到它有通过TCP连接到Redis的方法(即定义主机名和端口)。但是,我没有看到任何用于通过UNIX套接字进行连接的方法(除非