Redis – @user_script:1: WRONGTYPE Operation against a key holding the wrong kind of value
Following is my lua script if redis.call('sismember',KEYS[1],ARGV[1])==1 then redis.call('srem',KEYS[1],ARGV[1]) else return 0 end store = tonumber(redis.call('hget',KEYS[2],'capacity')) store = store + 1 redis.call('hset',KEYS[2],'capacity',store) return 1 when I run this srcipt in Java, An exception like @user_script:1: WRONGTYPE Operation against a key…