2881099 / FreeRedis

🦄 FreeRedis is .NET40+ redis client. supports cluster, sentinel, master-slave, pub-sub, lua, pipeline, transaction, streams, redisearch, client-side-caching, and pooling.
MIT License
925 stars 166 forks source link

GetDatabase这个方法好像有问题? #179

Closed suc8899 closed 7 months ago

suc8899 commented 8 months ago

异常信息: System.TimeoutException: 【xxx.xxx.221.40:6379/0】ObjectPool.Get() timeout 10 seconds, see: https://github.com/dotnetcore/FreeSql/discussions/1081

at FreeRedis.Internal.ObjectPool.ObjectPool1.Get(Nullable1 timeout)

at FreeRedis.RedisClient.PoolingAdapter.GetRedisSocket(CommandPacket cmd)

at FreeRedis.RedisClient.GetDatabase(Nullable`1 index) 调用方法:_redisClient.GetDatabase(15)

2881099 commented 8 months ago

尽量别用,除非每次都 using

eveloki commented 7 months ago

freeredis中的连接池实现用的是freesql的 ,我不知道你是什么场景下?大量调用GetDatabase然后没有使用using释放么