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

Lock Key if someone else is reading it

Open GJ2511 opened this issue 10 years ago • 1 comments

Hi I am using this module, I want some functionality like if I one person is reading data from key others cannot read data from the same key until first one finishes (i.e, some kind of locking to the key which will set when one is reading and after reading lock is released and the key is available to others).

Any suggestion or solutions guys ......

GJ2511 avatar Jun 29 '16 04:06 GJ2511

This is not a question about node_redis. You find information about Redlock on the Redis page: http://redis.io/topics/distlock

BridgeAR avatar Jul 04 '16 00:07 BridgeAR