summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/script-load.md
blob: ed5ab2dbc159fe1a572b861544f7fa7883dfd0e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Load a script into the scripts cache, without executing it.
After the specified command is loaded into the script cache it will be callable
using `EVALSHA` with the correct SHA1 digest of the script, exactly like after
the first successful invocation of `EVAL`.

The script is guaranteed to stay in the script cache forever (unless `SCRIPT
FLUSH` is called).

The command works in the same way even if the script was already present in the
script cache.

For more information about `EVAL` scripts please refer to [Introduction to Eval Scripts](/topics/eval-intro).

@return

@bulk-string-reply This command returns the SHA1 digest of the script added into the
script cache.