go-redis / redismock

Redis client Mock
https://redis.uptrace.dev
BSD 2-Clause "Simplified" License
280 stars 60 forks source link

Hooks are not executed for v9 #75

Open cjweber opened 1 year ago

cjweber commented 1 year ago

After updating to go-redis v9, I found that the custom hooks we have are not executed when added to the mock client.

The PR I made https://github.com/go-redis/redismock/pull/74 addresses it and fixes the problem for me.

I would like to understand if there is any intention to support added hooks moving forward, and if there is any reason why my PR doesn't address it in the desired way.

cjweber commented 10 months ago

@monkey92t Any chance my PR can get addressed? Happy to change it if it isn't satisfactory. I confirmed it fixes my issue locally.