Create run configuration

You need to create a run configuration before running Lua script, just right click on Lua editor and select Create Run Configuration:

create run configuration2

Configure run configuration

There are some options you can configure in run configuration dialog:

  • Specify on which server the script should run on
  • Choose the database the script should run against
  • Whether to print the detail of each Redis command execution when stepping over
  • Use sync mode to debug or not
  • Set key and arg values if your script needs them

run configuration2

You can change your run configuration later by select Select Run/Debug Configuration:

config run configuration2

Keys and args

You can skip setting key and arg values in run configuration, Iedis 2 will ask you to provide them when you try to run the script if Iedis determines that KEYS or ARGV are required. Defined key and arg values are cached so that you don't need to provide them each time you run the script. You can change cached values in previous run configuration.

key arg values

Run/Debug script

You can start run/debug your script by clicking execute or debug:

run debug2

Coming soon: Run script on any node of a cluster.

Codes Magic © 2013-2019 · Terms