socket.io-admin-ui icon indicating copy to clipboard operation
socket.io-admin-ui copied to clipboard

RedisClient library used for RedisStore

Open afrancis-caregility opened this issue 2 years ago • 1 comments

I am trying to use the RedisStore for sessionId storage and I am not seeing any entry in RedisDB for this. So, I want to know which RedisClient is being used to insert key in RedisDB. I use "ioredis": "^5.2.5" in my nodejs application. The admin UI is working correctly. I was expecting an entry in Redis but not seeing one. So, I want to understand this a little better.

afrancis-caregility avatar Jan 31 '23 03:01 afrancis-caregility

Hi! We use redis@3: https://github.com/socketio/socket.io-admin-ui/blob/fcf32cc3cc0d92c907a02e69bfc54fab14646496/package.json#L52

Not sure the ioredis package supports the syntax here: https://github.com/socketio/socket.io-admin-ui/blob/fcf32cc3cc0d92c907a02e69bfc54fab14646496/lib/stores.ts#L31-L72

But you should be able to write your own store by extending the Store class.

darrachequesne avatar Feb 16 '23 08:02 darrachequesne