From 59bc27d27cb41b3259f6e180f639da5f1a1aea65 Mon Sep 17 00:00:00 2001 From: Nikolay Turpitko Date: Thu, 21 Jan 2016 23:26:53 +0500 Subject: [PATCH] Update commands.md Documented some differences from Redis. --- doc/commands.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/commands.md b/doc/commands.md index 5d4c48a..8f2812d 100644 --- a/doc/commands.md +++ b/doc/commands.md @@ -2614,6 +2614,16 @@ LedisDB's script is refer to Redis, you can see more [http://redis.io/commands/e You must notice that executing lua will block any other write operations. +Use global object name "ledis" instead of "redis" to call commands in the Lua script: + +- ledis.call() +- ledis.pcall() +- ledis.sha1hex() +- ledis.status_reply() +- ledis.error_reply() + +EVALSHA command returns error message without "NOSCRIPT " prefix, so redigo users should preload script explicitly. + ### EVAL script numkeys key [key ...] arg [arg ...] ### EVALSHA sha1 numkeys key [key ...] arg [arg ...]