On this page:
redis-script-eval!
redis-script-eval-sha!
redis-script-exists?
redis-script-kill!
redis-script-load!
redis-scripts-flush!

13 Script Commands

procedure

(redis-script-eval! client    
  lua-script    
  [#:keys keys    
  #:args args])  redis-value/c
  client : redis?
  lua-script : redis-string/c
  keys : (listof redis-key/c) = null
  args : (listof redis-string/c) = null
Evaluate the lua-script on the fly within the database.
Commands used by this function: EVAL

procedure

(redis-script-eval-sha! client    
  script-sha1    
  [#:keys keys    
  #:args args])  redis-value/c
  client : redis?
  script-sha1 : redis-string/c
  keys : (listof redis-key/c) = null
  args : (listof redis-string/c) = null
Evaluate the lua script represented by the given script-sha1 on the fly within the database.
Commands used by this function: EVALSHA

procedure

(redis-script-exists? client sha)  boolean?

  client : redis?
  sha : redis-string/c
Returns #t when a script with the given sha has previously been registered with the server.
Commands used by this function: SCRIPT_EXISTS

procedure

(redis-script-kill! client)  boolean?

  client : redis?
Stops the currently-running lua script.
Commands used by this function: SCRIPT_KILL

procedure

(redis-script-load! client script)  string?

  client : redis?
  script : redis-string/c
Registers the given lua script with the server, returning its sha-1 hash.
Commands used by this function: SCRIPT_LOAD

procedure

(redis-scripts-flush! client)  boolean?

  client : redis?
Removes all the registered lua scripts from the server.
Commands used by this function: SCRIPT_FLUSH