- 13 Apr, 2012 2 commits
- 29 Mar, 2012 1 commit
-
-
antirez authored
-
- 28 Mar, 2012 1 commit
-
-
Nathan Fritz authored
(The original implementation was modified by @antirez to conform Redis coding standards.)
-
- 20 Mar, 2012 1 commit
-
-
antirez authored
This commit introduces support for read only slaves via redis.conf and CONFIG GET/SET commands. Also various semantical fixes are implemented here: 1) MULTI/EXEC with only read commands now work where the server is into a state where writes (or commands increasing memory usage) are not allowed. Before this patch everything inside a transaction would fail in this conditions. 2) Scripts just calling read-only commands will work against read only slaves, when the server is out of memory, or when persistence is into an error condition. Before the patch EVAL always failed in this condition.
-
- 24 Feb, 2012 1 commit
-
-
antirez authored
-
- 13 Feb, 2012 1 commit
-
-
lsbardel authored
-
- 02 Feb, 2012 1 commit
-
-
antirez authored
Now Lua scripts dispatch Redis commands properly calling the call() function. In order to make this possible call() was improved with a new flags argument that controls how the Redis command is executed.
-
- 01 Feb, 2012 1 commit
-
-
antirez authored
SORT is now more deterministic: does not accept to compare by score items that have scores not representing a valid double. Also items with the same score are compared lexycographically. At the same time the scripting side introduced the ability to sort the output of SORT when sort uses the BY <constant> optimization, resulting in no specific ordering. Since in this case the user may use GET, and the result of GET can be null, converted into false as Lua data type, this commit also introduces the ability to sort Lua tables containining false, only if the first (faster) attempt at using just table.sort with a single argument fails.
-
- 31 Jan, 2012 1 commit
-
-
antirez authored
Order output of commands returning random arrays using table.sort when called from Lua, partially fixing issue #165. The issue is yet not completely fixed since we can't add the REDIS_CMD_SORT_FOR_SCRIPT flag in SORT currently, both because it may contain NULLs and because it is not cool to re-sort everything at every call when instead this should be sorted only if BY <constant> is used.
-
- 29 Jan, 2012 1 commit
-
-
Jakub Wieczorek authored
-
- 18 Nov, 2011 1 commit
-
-
antirez authored
New script timeout semantics and SCRIPT KILL implemented. SHUTDOWN NOSAVE and SHUTDOWN SAVE implemented.
-
- 27 Oct, 2011 1 commit
-
-
antirez authored
If a Lua script executes for more time than the max time specified in the configuration Redis will log a warning, and will start accepting queries (re-entering the event loop), returning -SLOWSCRIPT error for all the commands but SHUTDOWN that remains callable.
-
- 25 Oct, 2011 4 commits
- 24 Oct, 2011 1 commit
-
-
antirez authored
-
- 20 Oct, 2011 1 commit
-
-
antirez authored
Redis.call is now split into two variants of the same function. Redis.call will raise an error by default. Redis.pcall will return the error object instead.
-
- 19 Oct, 2011 1 commit
-
-
antirez authored
JSON support for Lua scripting, based on work from @lp, thanks!. We are using the good and fast cjson by Mark Pulford.
-
- 04 Oct, 2011 1 commit
-
-
antirez authored
-
- 27 Sep, 2011 3 commits
-
-
antirez authored
-
antirez authored
Return errors if a write command is called inside a Lua script after a random command was called. See https://github.com/antirez/redis/issues/95 for more information.
-
antirez authored
-
- 23 Sep, 2011 1 commit
-
-
antirez authored
Lua math.random and math.randomseed replaced with our own version based on redisSrand48(). Seed initialized to the same value at every EVAL/EVALSHA call.
-
- 13 Jul, 2011 1 commit
-
-
antirez authored
-
- 25 May, 2011 14 commits
-
-
antirez authored
Make sure error and status replies emitted by Lua scripts can never have more than a newline, otherwise it is a protocol violation and clients will desync.
-
antirez authored
-
antirez authored
All commands exported by Redis to Lua scripts are now inside the redis table. Implemented redis.log() function.
-
antirez authored
-
antirez authored
Now it is possible to return multi bulks of multi bulks from Lua, just returning tables of tables. The new conversion of the Null bulk and multi bulk type is the Lua false type.
-
antirez authored
-
antirez authored
Lua max exec time fixes: redisLog() to log the event moved before the lua_error() call that does a long jump so never returns. Aesthetic fixes in error message.
-
antirez authored
call the Lua hook with minor frequency. It is already enough to call it every 100000 istructions for near millisecond precision.
-
antirez authored
-
antirez authored
-
antirez authored
-
antirez authored
Fixed a problem in the script engine that crashed the server if the reply was not stored just int the static buffer of the client structure.
-
antirez authored
-
antirez authored
Fixed nul bulk parsing in Redis protocol to Lua type convertion. Check for bad Lua types as arguements of the redis() Lua command.
-