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
Copy file name to clipboardExpand all lines: commands/eval.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,12 @@ to ensure the correct execution of scripts, both in standalone and clustered dep
12
12
The script **should only** access keys whose names are given as input arguments.
13
13
Scripts **should never** access keys with programmatically-generated names or based on the contents of data structures stored in the database.
14
14
15
+
**Note:**
16
+
in some cases, users will abuse Lua EVAL by embedding values in the script instead of providing them as argument, and thus generating a different script on each call to EVAL.
17
+
These are added to the Lua interpreter and cached to redis-server, consuming a large amount of memory over time.
18
+
Starting from Redis 8.0, scripts loaded with `EVAL` or `EVAL_RO` will be deleted from redis after a certain number (least recently used order).
19
+
The number of evicted scripts can be viewed through `INFO`'s `evicted_scripts`.
20
+
15
21
Please refer to the [Redis Programmability](/topics/programmability) and [Introduction to Eval Scripts](/topics/eval-intro) for more information about Lua scripts.
0 commit comments