Is there any way to remove/delete an entry by key, using Node_redis? I can't see any such option from the docs..
“redis delete keys by pattern nodejs” Code Answer'scall('keys', ARGV[1]) \n for i=1,#keys,5000 do \n redis. call('del', unpack(keys, i, math. min(i+4999, #keys))) \n end \n return keys" 0 prefix:*
To list the keys in the Redis data store, use the KEYS command followed by a specific pattern. Redis will search the keys for all the keys matching the specified pattern. In our example, we can use an asterisk (*) to match all the keys in the data store to get all the keys.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With