Replies: 2 comments 2 replies
-
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
-
hi @cpouldev did u find any solution? I have the same question. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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