elliotchance / redismock

🕋 Mocking Redis in unit tests in Go.
MIT License
147 stars 24 forks source link

Add support for go-redis v8.3.3 #26

Closed shmsr closed 3 years ago

shmsr commented 3 years ago

Updating redismock/v8 to support go-redis v8.3.3

With the go-redis v8.3.3, the ClientMock couldn't satisfy the interface redis.Cmdable.

Sample error message:

cannot use &(ClientMock literal) (value of type *ClientMock) as redis.Cmdable value in variable declaration: missing method SetEX

The PR fixes that by adding the SetEX method.


This change is Reviewable