How to cast cmdble to *Client? #2200
stephandesouza
started this conversation in
General
Replies: 0 comments
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.
-
Hey guys,
We are using a lib which uses
*redis.Client
as parameter, but we need to pass a mockedredis.Cmdable
(from github.com/elliotchance/redismock) to it, how can this cast be possible?Ex.
Tried something like this, but without success:
Type returned by
redismock.NewMock
cache.NewRedisWithClient
signatureBeta Was this translation helpful? Give feedback.
All reactions