add locking in redis