csredis icon indicating copy to clipboard operation
csredis copied to clipboard

Questions about using CSRedis.CSRedisClient

Open NodeGreenHand opened this issue 3 years ago • 1 comments

Hello, This redis access help class, I have a few questions, please help me answer: Question 1: The singleton pattern is recommended, what are the benefits? My application scenario is only used to read the data in redis. In the case of multi-threaded access, will the use of singleton cause blocking, that is, each time the data is accessed serially, which reduces the access efficiency? Question 2: Every time a redis access instance object is created, does it mean that a new socket connection is created, and when is it destroyed? Question 3: What is the relationship between socket link and connection pool? thanks

NodeGreenHand avatar Sep 17 '22 14:09 NodeGreenHand

see #460

2881099 avatar Sep 17 '22 14:09 2881099