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.Clientas 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.NewMockcache.NewRedisWithClientsignatureBeta Was this translation helpful? Give feedback.
All reactions