issues
search
go-redis
/
redismock
Redis client Mock
https://redis.uptrace.dev
BSD 2-Clause "Simplified" License
271
stars
59
forks
source link
Add support for go-redis v9
#45
Closed
dtsulik
closed
1 year ago
dtsulik
commented
1 year ago
Adding support for go-redis/v9
NOTES
go.mod has 'github.com/dtsulik/redismock' instead of 'github.com/go-redis/redismock'
ExpectZAddNXCh/XXCh/IncrNX/IncrXX where reimplemented with
ZAddArgs
and
ZAddArgsIncr
instead of testing Args variant with bunch of options.
All processing hooks (Before/After, BeforePipeline/AfterPipeline) are replaced with single
ProcessHook
in go-redis/v9 hence only one hook in mock.go.
Adding support for go-redis/v9
NOTES
ZAddArgs
andZAddArgsIncr
instead of testing Args variant with bunch of options.ProcessHook
in go-redis/v9 hence only one hook in mock.go.