Replies: 1 comment
-
go-redis allows access to network connection objects, while *Conn objects are still managed by go-redis/pool. rdb := redis.NewClient(...)
conn := rdb.Conn() However, it's important to note that, as you mentioned, the go-redis connection pool is closed and similar to database/sql, we don't advocate for using individual network connections. But if you need to perform some special work, you'll need to accept the risks involved with doing so. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all
I'm using redisearch module (along with the relevant go library) and I want to share the connection pool instance from the go-redis with it.
I dived into the source code and I couldn't find any exposed getter or something relevant.
Any help / recommendation will be appreciated.
UPDATE:
I just realized that go-redis and redisgo are different, therefore the Pool implementation is different too.
Beta Was this translation helpful? Give feedback.
All reactions