Search…
⌘K
Ask AI
⌘I
Discord
Blog
Twitter
Console
Overview
Redis
Vector
QStash
Workflow
Search
Box
Realtime
Developer API
Redis
SDKs
Python
Commands
Scripts
SCRIPT LOAD
Load the specified Lua script into the script cache.
1 min read
Copy as Markdown
Arguments
#
script
str
required
#
The script to load.
Response
#
SCRIPT FLUSH
DBSIZE
Example
sha1
=
redis.script_load(
"return 1"
)
assert
redis.evalsha(sha1)
==
1