CodisLabs / CodisLabs/codis

执行Lua脚本时,参数大于2个,获得非预期的结果

Open
#1,583 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
13.2k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

psetex test 500000 testValue

eval "local ttl = redis.call('pttl', KEYS[1]) return ttl" 1 test
-->key'test''s ttl
eval "local ttl = redis.call('pttl', KEYS[2]) return ttl" 2 test1 test
-->-1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.