PooledRedisClientManager not releasing connections

前端 未结 2 1863
无人共我
无人共我 2021-02-10 16:37

I am storing lists of json data in redis and accessing it using the ServiceStack c# client. I am essentially managing my own foreign keys, where I store a zrange o

2条回答
  •  情歌与酒
    2021-02-10 17:16

    Currently my biggest challenge is that client connections are not being closed.

    You are using the 'PooledRedisClientManager' so my understanding is that the client connections should not be closed, just put into the pool for reuse. It looks like your pool size is 100 connections.

    You can try using var mgr = new BasicRedisClientManager("localhost:6379") which should dispose of the client.

提交回复
热议问题