redis-mock icon indicating copy to clipboard operation
redis-mock copied to clipboard

Support for prefix

Open ArTiSTiX opened this issue 6 years ago • 1 comments

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.

ArTiSTiX avatar May 23 '19 16:05 ArTiSTiX

Same here, need prefix support

mindonline avatar Jun 01 '20 13:06 mindonline