redis连接是否需要关闭

redis-server会关闭空闲超时的连接
redis.conf中可以设置超时时间:
# Close the connection after a client is idle for N seconds (0 to disable)
timeout 300

你可能感兴趣的:(redis,redis)