Skip to content

Commit 9487e6a

Browse files
Update eval.md to fix #886
added info about TTL to fix #886
1 parent df2d298 commit 9487e6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

commands/eval.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ These names of input keys are available to the script as the [_KEYS_ global runt
88
Any additional input arguments **should not** represent names of keys.
99

1010
**Important:**
11-
to ensure the correct execution of scripts, both in standalone and clustered deployments, all names of keys that a script accesses must be explicitly provided as input key arguments.
11+
To ensure the correct execution of scripts, both in standalone and clustered deployments, all names of keys that a script accesses must be explicitly provided as input key arguments.
1212
The script **should only** access keys whose names are given as input arguments.
1313
Scripts **should never** access keys with programmatically-generated names or based on the contents of data structures stored in the database.
14+
If a key with expiry (TTL) exists at the start of eval, it will not get expired during the evaluation of a script.
15+
During the evaluation of a Lua script, TTL of a key can go down to zero. After that, it remains zero until the script terminates.
1416

1517
Please refer to the [Redis Programmability](/topics/programmability) and [Introduction to Eval Scripts](/topics/eval-intro) for more information about Lua scripts.
1618

0 commit comments

Comments
 (0)