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
-
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