redis-mock
redis-mock copied to clipboard
Support for prefix
I'm using node-redis client, and it supports a prefix option to prefix all keys provided to commands.
I didn't know unil now it was supported directly by Redis, and handled server-side.
The only command that does not take this prefix into account is the KEYS pattern command, that i am using.
The result of this command does not remove the client prefix (not prefix the pattern as argument).
Using redis-mock does not mimic this auto-prefixing (all keys are store without prefix), thus breaking my test scenario using the KEYS command.
Would it be planned in your roadmap ?
Thanks for your work.
Same here, need prefix support