You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DistributedLock.Redis lua error with keyprefix on redis cluster. #254
The following script will cause an error on some cloud Redis servers:
EVAL if redis.call('get', ARGV[1]) == ARGV[2] then return redis.call('del', ARGV[1]) end return 0
StackExchange.Redis.RedisServerException: ERR bad lua script for redis cluster, all the keys that the script uses should be passed using the KEYS array, and KEYS should not be in expression.
Activity
Redis Key argument use KEYS rather than ARGV.
madelson commentedon Oct 22, 2025
Likely caused by StackExchange/StackExchange.Redis#2273
Ensure that all lua scripts partition parameters between KEYS and ARGV