]> git.saurik.com Git - redis.git/log
redis.git
15 years agodead code removed from RubyRedis
antirez [Thu, 21 May 2009 11:31:00 +0000 (13:31 +0200)] 
dead code removed from RubyRedis

15 years agocommand postprocessing implemented into RubyRedis
antirez [Thu, 21 May 2009 11:22:20 +0000 (13:22 +0200)] 
command postprocessing implemented into RubyRedis

15 years agoAutomagically reconnection of RubyRedis
antirez [Wed, 20 May 2009 15:52:47 +0000 (17:52 +0200)] 
Automagically reconnection of RubyRedis

15 years agoRubyRedis: Array alike operators implemented
antirez [Wed, 20 May 2009 15:34:20 +0000 (17:34 +0200)] 
RubyRedis: Array alike operators implemented

15 years agorandom testing code removed
antirez [Wed, 20 May 2009 15:23:06 +0000 (17:23 +0200)] 
random testing code removed

15 years agoRubyRedis DB selection forced at object creation
antirez [Wed, 20 May 2009 15:22:29 +0000 (17:22 +0200)] 
RubyRedis DB selection forced at object creation

15 years agoInitial version of an alternative Ruby client added
antirez [Wed, 20 May 2009 14:36:12 +0000 (16:36 +0200)] 
Initial version of an alternative Ruby client added

15 years agoSDIFF / SDIFFSTORE added to doc
antirez [Wed, 20 May 2009 09:09:09 +0000 (11:09 +0200)] 
SDIFF / SDIFFSTORE added to doc

15 years agoAman Gupta changes merged
antirez [Wed, 20 May 2009 08:44:08 +0000 (10:44 +0200)] 
Aman Gupta changes merged

15 years agoMerge git://github.com/tmm1/redis
antirez [Wed, 20 May 2009 08:42:43 +0000 (10:42 +0200)] 
Merge git://github.com/tmm1/redis

15 years agoAllow timeout=0 config to disable client timeouts
Aman Gupta [Wed, 20 May 2009 05:36:11 +0000 (22:36 -0700)] 
Allow timeout=0 config to disable client timeouts

15 years agoPartial qsort implemented in SORT command, only when both BY and LIMIT is used. minor...
antirez [Tue, 19 May 2009 16:39:58 +0000 (18:39 +0200)] 
Partial qsort implemented in SORT command, only when both BY and LIMIT is used. minor fix for a warning compiling under Linux.

15 years agopsort.c/h added. This is a partial qsort implementation that Redis will use when...
antirez [Tue, 19 May 2009 15:34:30 +0000 (17:34 +0200)] 
psort.c/h added. This is a partial qsort implementation that Redis will use when SORT+LIMIT is requested

15 years agoFix SINTER/UNIONSTORE to allow for &=/|= style operations (i.e. SINTERSTORE set1...
Aman Gupta [Sun, 17 May 2009 21:16:24 +0000 (14:16 -0700)] 
Fix SINTER/UNIONSTORE to allow for &=/|= style operations (i.e. SINTERSTORE set1 set1 set2)

15 years agoOptimize SDIFF to return as soon as the result set is empty
Aman Gupta [Sun, 17 May 2009 19:25:05 +0000 (12:25 -0700)] 
Optimize SDIFF to return as soon as the result set is empty

15 years agoSDIFF/SDIFFSTORE implemnted unifying it with the implementation of SUNION/SUNIONSTORE
antirez [Sun, 17 May 2009 11:45:08 +0000 (13:45 +0200)] 
SDIFF/SDIFFSTORE implemnted unifying it with the implementation of SUNION/SUNIONSTORE

15 years agotimestamp in log lines
antirez [Mon, 11 May 2009 17:45:47 +0000 (19:45 +0200)] 
timestamp in log lines

15 years agoPython client updated pushing from Ludo's repository
antirez [Mon, 11 May 2009 11:50:09 +0000 (13:50 +0200)] 
Python client updated pushing from Ludo's repository

15 years agodisconnect when we cannot read from the socket
Ludovico Magnocavallo [Mon, 11 May 2009 11:39:59 +0000 (13:39 +0200)] 
disconnect when we cannot read from the socket

15 years agobenchmark utility now supports random keys
antirez [Sun, 10 May 2009 22:36:12 +0000 (00:36 +0200)] 
benchmark utility now supports random keys

15 years agominor doc changes
antirez [Sun, 10 May 2009 08:48:37 +0000 (10:48 +0200)] 
minor doc changes

15 years agoadded tests for vararg DEL
antirez [Sat, 9 May 2009 10:32:29 +0000 (12:32 +0200)] 
added tests for vararg DEL

15 years agoDEL is now a vararg, IMPORTANT: memory leak fixed in loading DB code
antirez [Sat, 9 May 2009 10:18:32 +0000 (12:18 +0200)] 
DEL is now a vararg, IMPORTANT: memory leak fixed in loading DB code

15 years agodoc changes
antirez [Sat, 9 May 2009 07:58:26 +0000 (09:58 +0200)] 
doc changes

15 years agoCPP client added thanks to Brian Hammond
antirez [Sat, 9 May 2009 07:25:59 +0000 (09:25 +0200)] 
CPP client added thanks to Brian Hammond

15 years agoInfinite number of arguments for MGET and all the other commands
antirez [Wed, 6 May 2009 21:54:57 +0000 (23:54 +0200)] 
Infinite number of arguments for MGET and all the other commands

15 years agoWarns if /proc/sys/vm/overcommit_memory is set to 0 on Linux. Also make sure to don...
antirez [Mon, 4 May 2009 14:26:06 +0000 (16:26 +0200)] 
Warns if /proc/sys/vm/overcommit_memory is set to 0 on Linux. Also make sure to don't resize the hash tables while the child process is saving in order to avoid copy-on-write of memory pages

15 years agozmalloc fix, return NULL or real malloc failure
antirez [Thu, 30 Apr 2009 18:15:18 +0000 (20:15 +0200)] 
zmalloc fix, return NULL or real malloc failure

15 years agomore fixes for dict.c and the 150 million keys limit
antirez [Thu, 30 Apr 2009 18:08:43 +0000 (20:08 +0200)] 
more fixes for dict.c and the 150 million keys limit

15 years agodict.c modified to be able to handle more than 150,000,000 keys
antirez [Thu, 30 Apr 2009 12:48:02 +0000 (14:48 +0200)] 
dict.c modified to be able to handle more than 150,000,000 keys

15 years agofuzz stresser implemented in redis-test
antirez [Wed, 29 Apr 2009 17:49:19 +0000 (19:49 +0200)] 
fuzz stresser implemented in redis-test

15 years agofixed for HT resize check 32bits overflow
antirez [Wed, 29 Apr 2009 14:50:48 +0000 (16:50 +0200)] 
fixed for HT resize check 32bits overflow

15 years agoCheck for fork() failure in background saving
antirez [Wed, 29 Apr 2009 08:33:29 +0000 (10:33 +0200)] 
Check for fork() failure in background saving

15 years agofix for the LZF off-by-one bug added
antirez [Tue, 28 Apr 2009 23:04:04 +0000 (01:04 +0200)] 
fix for the LZF off-by-one bug added

15 years agoprint bytes used at exit on SHUTDOWN
antirez [Tue, 28 Apr 2009 20:04:41 +0000 (22:04 +0200)] 
print bytes used at exit on SHUTDOWN

15 years agoSMOVE test added
antirez [Tue, 28 Apr 2009 19:19:37 +0000 (21:19 +0200)] 
SMOVE test added

15 years agoSMOVE command implemented
antirez [Tue, 28 Apr 2009 18:36:08 +0000 (20:36 +0200)] 
SMOVE command implemented

15 years agoless CPU usage in command parsing, case insensitive config directives
antirez [Tue, 28 Apr 2009 14:54:56 +0000 (16:54 +0200)] 
less CPU usage in command parsing, case insensitive config directives

15 years agoGETSET command doc added
antirez [Tue, 28 Apr 2009 14:33:35 +0000 (16:33 +0200)] 
GETSET command doc added

15 years agoGETSET tests
antirez [Tue, 28 Apr 2009 14:21:16 +0000 (16:21 +0200)] 
GETSET tests

15 years agoGETSET implemented
antirez [Tue, 28 Apr 2009 12:42:55 +0000 (14:42 +0200)] 
GETSET implemented

15 years agoability to specify a different file name for the DB
antirez [Mon, 27 Apr 2009 16:10:00 +0000 (18:10 +0200)] 
ability to specify a different file name for the DB

15 years agolog file parsing code improved a bit
antirez [Mon, 27 Apr 2009 16:03:34 +0000 (18:03 +0200)] 
log file parsing code improved a bit

15 years agobgsave_in_progress field in INFO output
antirez [Mon, 27 Apr 2009 15:52:04 +0000 (17:52 +0200)] 
bgsave_in_progress field in INFO output

15 years agoINCRBY/DECRBY now support 64bit increments, with tests
antirez [Mon, 27 Apr 2009 15:50:26 +0000 (17:50 +0200)] 
INCRBY/DECRBY now support 64bit increments, with tests

15 years agoRANDOMKEY regression test added
antirez [Thu, 23 Apr 2009 16:48:11 +0000 (18:48 +0200)] 
RANDOMKEY regression test added

15 years agodictGetRandomKey bug fixed, RANDOMKEY will not block the server anymore
antirez [Thu, 23 Apr 2009 16:46:11 +0000 (18:46 +0200)] 
dictGetRandomKey bug fixed, RANDOMKEY will not block the server anymore

15 years agoFLUSHALL/FLUSHDB no longer sync on disk. Just increment the dirty counter by the...
antirez [Tue, 21 Apr 2009 23:44:48 +0000 (01:44 +0200)] 
FLUSHALL/FLUSHDB no longer sync on disk. Just increment the dirty counter by the number of elements removed, that will probably trigger a background saving operation

15 years agoforgot to comment testing code in PHP lib. Now it is ok
antirez [Tue, 21 Apr 2009 17:47:12 +0000 (19:47 +0200)] 
forgot to comment testing code in PHP lib. Now it is ok

15 years agoPHP client ported to PHP5 and fixed
antirez [Tue, 21 Apr 2009 17:43:02 +0000 (19:43 +0200)] 
PHP client ported to PHP5 and fixed

15 years agodoc update
antirez [Mon, 20 Apr 2009 22:33:34 +0000 (00:33 +0200)] 
doc update

15 years agoNon blocking replication (finally!). C-side linked lists API improved.
antirez [Mon, 20 Apr 2009 21:51:51 +0000 (23:51 +0200)] 
Non blocking replication (finally!). C-side linked lists API improved.

15 years agoSUNION, SUNIONSTORE, Initial work on non blocking replication
antirez [Sun, 19 Apr 2009 08:02:36 +0000 (10:02 +0200)] 
SUNION, SUNIONSTORE, Initial work on non blocking replication

15 years agoRedis 0.091 released
antirez [Fri, 10 Apr 2009 11:49:50 +0000 (13:49 +0200)] 
Redis 0.091 released

15 years agoSINTER/SINTERSTORE/SLEMENTS fix: misisng keys are now not errors, but just like empty...
antirez [Fri, 10 Apr 2009 11:43:41 +0000 (13:43 +0200)] 
SINTER/SINTERSTORE/SLEMENTS fix: misisng keys are now not errors, but just like empty sets

15 years agodoc changes
antirez [Thu, 9 Apr 2009 06:44:55 +0000 (08:44 +0200)] 
doc changes

15 years agoTODO changes, minor change to default redis.conf
antirez [Wed, 8 Apr 2009 11:46:26 +0000 (13:46 +0200)] 
TODO changes, minor change to default redis.conf

15 years agohtml doc updated
antirez [Wed, 8 Apr 2009 11:42:34 +0000 (13:42 +0200)] 
html doc updated

15 years agolibrary clients update scripts
antirez [Wed, 8 Apr 2009 11:26:36 +0000 (13:26 +0200)] 
library clients update scripts

15 years agoRuby client updated
antirez [Wed, 8 Apr 2009 11:20:03 +0000 (13:20 +0200)] 
Ruby client updated

15 years agoLua client updated
antirez [Wed, 8 Apr 2009 11:17:55 +0000 (13:17 +0200)] 
Lua client updated

15 years agoChangelog updated
antirez [Wed, 8 Apr 2009 10:25:15 +0000 (12:25 +0200)] 
Changelog updated

15 years agoMerge git://github.com/ludoo/redis
antirez [Wed, 8 Apr 2009 10:13:56 +0000 (12:13 +0200)] 
Merge git://github.com/ludoo/redis

15 years agoadd expire command to the php lib
Ludovico Magnocavallo [Wed, 8 Apr 2009 10:09:56 +0000 (12:09 +0200)] 
add expire command to the php lib

15 years agofix decode bug, add flush and info commands
Ludovico Magnocavallo [Wed, 8 Apr 2009 10:08:05 +0000 (12:08 +0200)] 
fix decode bug, add flush and info commands

15 years agoRearrange redisObject struct to reduce memory usage in 64bit environments (as recomme...
Bob Potter [Tue, 7 Apr 2009 23:40:33 +0000 (18:40 -0500)] 
Rearrange redisObject struct to reduce memory usage in 64bit environments (as recommended http://groups.google.com/group/redis-db/msg/68f5a743f8f4e287)

15 years agoruby19 compat: use each_line on string
Bob Potter [Tue, 7 Apr 2009 23:36:23 +0000 (18:36 -0500)] 
ruby19 compat: use each_line on string

15 years ago64bit fixes for usedmemory
Bob Potter [Tue, 7 Apr 2009 23:33:44 +0000 (18:33 -0500)] 
64bit fixes for usedmemory

15 years agoRANDOMKEY issue 26 fixed, generic test + regression added
antirez [Tue, 7 Apr 2009 22:59:53 +0000 (00:59 +0200)] 
RANDOMKEY issue 26 fixed, generic test + regression added

15 years agoDon't accept SAVE if BGSAVE is in progress
antirez [Mon, 6 Apr 2009 08:29:36 +0000 (10:29 +0200)] 
Don't accept SAVE if BGSAVE is in progress

15 years agoadd expire command to the python lib
Ludovico Magnocavallo [Mon, 6 Apr 2009 08:19:26 +0000 (10:19 +0200)] 
add expire command to the python lib

15 years agopersistent EXPIRE
antirez [Fri, 3 Apr 2009 09:07:37 +0000 (11:07 +0200)] 
persistent EXPIRE

15 years agodirty increment was missing in two points. TODO updated
antirez [Fri, 3 Apr 2009 08:04:51 +0000 (10:04 +0200)] 
dirty increment was missing in two points. TODO updated

15 years agoLZF configured to initalize the HT in order to be determinsitic and play well with...
antirez [Thu, 2 Apr 2009 21:00:27 +0000 (23:00 +0200)] 
LZF configured to initalize the HT in order to be determinsitic and play well with valgrind

15 years agofix select test
Ludovico Magnocavallo [Thu, 2 Apr 2009 15:34:42 +0000 (17:34 +0200)] 
fix select test

15 years agofix trailing cr+nl in values
Ludovico Magnocavallo [Thu, 2 Apr 2009 15:33:04 +0000 (17:33 +0200)] 
fix trailing cr+nl in values

15 years agocompression/decompression of large values on disk now working
antirez [Thu, 2 Apr 2009 15:10:02 +0000 (17:10 +0200)] 
compression/decompression of large values on disk now working

15 years agodisable LZF compression since it's not able to load the DB for now, the load part...
antirez [Thu, 2 Apr 2009 08:02:06 +0000 (10:02 +0200)] 
disable LZF compression since it's not able to load the DB for now, the load part is missing

15 years agonew LZF files added
antirez [Thu, 2 Apr 2009 08:00:49 +0000 (10:00 +0200)] 
new LZF files added

15 years agoFixed issue 23 about AUTH
antirez [Thu, 2 Apr 2009 07:57:06 +0000 (09:57 +0200)] 
Fixed issue 23 about AUTH

15 years agoIssue 22 fixed
antirez [Thu, 2 Apr 2009 07:54:45 +0000 (09:54 +0200)] 
Issue 22 fixed

15 years agonon-lazy expired keys purging implemented
antirez [Wed, 1 Apr 2009 18:40:00 +0000 (20:40 +0200)] 
non-lazy expired keys purging implemented

15 years agofastlz dependence removed
antirez [Wed, 1 Apr 2009 12:36:29 +0000 (14:36 +0200)] 
fastlz dependence removed

15 years agoInitial implementation of EXPIRE
antirez [Wed, 1 Apr 2009 11:22:35 +0000 (13:22 +0200)] 
Initial implementation of EXPIRE

15 years agoTODO updated
antirez [Mon, 30 Mar 2009 14:27:35 +0000 (16:27 +0200)] 
TODO updated

15 years agochangelog added
antirez [Mon, 30 Mar 2009 10:13:43 +0000 (12:13 +0200)] 
changelog added

15 years agoredis-sha1 utility added
antirez [Sat, 28 Mar 2009 10:50:27 +0000 (11:50 +0100)] 
redis-sha1 utility added

15 years agoInteger encoding implemented in dump file. Doc updated
antirez [Sat, 28 Mar 2009 09:58:19 +0000 (10:58 +0100)] 
Integer encoding implemented in dump file. Doc updated

15 years agofeature macros defined to play well with C99
antirez [Fri, 27 Mar 2009 21:01:04 +0000 (22:01 +0100)] 
feature macros defined to play well with C99

15 years agofeature macros defined to play well with C99
antirez [Fri, 27 Mar 2009 21:00:27 +0000 (22:00 +0100)] 
feature macros defined to play well with C99

15 years agonow Redis is C99-ok
antirez [Fri, 27 Mar 2009 20:37:57 +0000 (21:37 +0100)] 
now Redis is C99-ok

15 years agoIMPORTANT FIX: new dump format implementation was broken. Now it's ok but tests for...
antirez [Fri, 27 Mar 2009 20:27:42 +0000 (21:27 +0100)] 
IMPORTANT FIX: new dump format implementation was broken. Now it's ok but tests for the 32-bit case values are needed

15 years agoANSI-C compatibility changes
antirez [Fri, 27 Mar 2009 19:48:32 +0000 (20:48 +0100)] 
ANSI-C compatibility changes

15 years agoRuby client library updated. Important changes in this new version!
antirez [Fri, 27 Mar 2009 11:14:35 +0000 (12:14 +0100)] 
Ruby client library updated. Important changes in this new version!

15 years agoLua client added thanks to Daniele Alessandri
antirez [Thu, 26 Mar 2009 16:24:53 +0000 (17:24 +0100)] 
Lua client added thanks to Daniele Alessandri

15 years agoLua client added thanks to Daniele Alessandri
antirez [Thu, 26 Mar 2009 16:23:51 +0000 (17:23 +0100)] 
Lua client added thanks to Daniele Alessandri

15 years agoAUTH merged from Brian Hammond fork, reworked a bit to fix minor problems
antirez [Thu, 26 Mar 2009 10:46:14 +0000 (11:46 +0100)] 
AUTH merged from Brian Hammond fork, reworked a bit to fix minor problems

15 years agoAdds AUTH command.
Brian Hammond [Thu, 26 Mar 2009 03:03:56 +0000 (23:03 -0400)] 
Adds AUTH command.

$ make
cc -c -O2 -Wall -W -DSDS_ABORT_ON_OOM -g  adlist.c
cc -c -O2 -Wall -W -DSDS_ABORT_ON_OOM -g  ae.c
cc -c -O2 -Wall -W -DSDS_ABORT_ON_OOM -g  anet.c
cc -c -O2 -Wall -W -DSDS_ABORT_ON_OOM -g  dict.c
cc -c -O2 -Wall -W -DSDS_ABORT_ON_OOM -g  redis.c
cc -c -O2 -Wall -W -DSDS_ABORT_ON_OOM -g  sds.c
cc -c -O2 -Wall -W -DSDS_ABORT_ON_OOM -g  zmalloc.c
cc -o redis-server -O2 -Wall -W -DSDS_ABORT_ON_OOM -g adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o

Hint: To run the test-redis.tcl script is a good idea.
Launch the redis server with ./redis-server, then in another
terminal window enter this directory and run 'make test'.

cc -c -O2 -Wall -W -DSDS_ABORT_ON_OOM -g  benchmark.c
cc -o redis-benchmark -O2 -Wall -W -DSDS_ABORT_ON_OOM -g ae.o anet.o benchmark.o sds.o adlist.o zmalloc.o
cc -c -O2 -Wall -W -DSDS_ABORT_ON_OOM -g  redis-cli.c
cc -o redis-cli -O2 -Wall -W -DSDS_ABORT_ON_OOM -g anet.o sds.o adlist.o redis-cli.o zmalloc.o

$ tail -1 redis.conf

$ ./redis-server redis.conf &
[1] 52494
$ - Server started, Redis version 0.08
- DB loaded from disk
- The server is now ready to accept connections on port 6379
. 0 clients connected (0 slaves), 1932 bytes in use

$ make test
tclsh test-redis.tcl
DEL all keys to start with a clean DB                                  . Accepted 127.0.0.1:54490
PASSED
SET and GET an item                                                    PASSED
DEL against a single item                                              PASSED
KEYS with pattern                                                      PASSED
KEYS to get all keys                                                   PASSED
DBSIZE                                                                 PASSED
DEL all keys                                                           PASSED
Very big payload in GET/SET                                            PASSED
SET 10000 numeric keys and access all them in reverse order            . DB 0: 10001 keys in 16384 slots HT.
. 1 clients connected (0 slaves), 4885707 bytes in use
PASSED
DBSIZE should be 10001 now                                             PASSED
INCR against non existing key                                          PASSED
INCR against key created by incr itself                                PASSED
INCR against key originally set with SET                               PASSED
SETNX target key missing                                               PASSED
SETNX target key exists                                                PASSED
EXISTS                                                                 PASSED
Zero length value in key. SET/GET/EXISTS                               PASSED
Commands pipelining                                                    PASSED
Non existing command                                                   PASSED
Basic LPUSH, RPUSH, LLENGTH, LINDEX                                    PASSED
DEL a list                                                             PASSED
Create a long list and check every single element with LINDEX          PASSED
Test elements with LINDEX in random access                             PASSED
LLEN against non-list value error                                      PASSED
LINDEX against non-list value error                                    PASSED
LPUSH against non-list value error                                     PASSED
RPUSH against non-list value error                                     PASSED
RENAME basic usage                                                     PASSED
RENAME source key should no longer exist                               PASSED
RENAME against already existing key                                    PASSED
RENAMENX basic usage                                                   PASSED
RENAMENX against already existing key                                  PASSED
RENAMENX against already existing key (2)                              PASSED
RENAME against non existing source key                                 PASSED
RENAME where source and dest key is the same                           PASSED
DEL all keys again (DB 0)                                              PASSED
DEL all keys again (DB 1)                                              PASSED
MOVE basic usage                                                       PASSED
MOVE against key existing in the target DB                             PASSED
SET/GET keys in different DBs                                          PASSED
Basic LPOP/RPOP                                                        PASSED
LPOP/RPOP against empty list                                           PASSED
LPOP against non list value                                            PASSED
Mass LPUSH/LPOP                                                        PASSED
LRANGE basics                                                          PASSED
LRANGE inverted indexes                                                PASSED
LRANGE out of range indexes including the full list                    PASSED
LRANGE against non existing key                                        PASSED
LTRIM basics                                                           PASSED
LSET                                                                   PASSED
LSET out of range index                                                PASSED
LSET against non existing key                                          PASSED
LSET against non list value                                            PASSED
SADD, SCARD, SISMEMBER, SMEMBERS basics                                PASSED
SADD adding the same element multiple times                            PASSED
SADD against non set                                                   PASSED
SREM basics                                                            PASSED
Mass SADD and SINTER with two sets                                     PASSED
SINTERSTORE with two sets                                              PASSED
SINTER against three sets                                              PASSED
SINTERSTORE with three sets                                            PASSED
SAVE - make sure there are all the types as values                     - DB saved on disk
PASSED
Create a random list                                                   . DB 0: 6057 keys in 16384 slots HT.
. DB 1: 3 keys in 16 slots HT.
. 1 clients connected (0 slaves), 1045147 bytes in use
PASSED
SORT with BY against the newly created list                            PASSED
SORT direct, numeric, against the newly created list                   PASSED
SORT decreasing sort                                                   PASSED
SORT speed, sorting 10000 elements list using BY, 100 times
  Average time to sort: 5.28 milliseconds PASSED
SORT speed, sorting 10000 elements list directly, 100 times
  Average time to sort: 1.53 milliseconds PASSED
SORT speed, pseudo-sorting 10000 elements list, BY <const>, 100 times
  Average time to sort: 0.47 milliseconds PASSED
SORT regression for issue #19, sorting floats                          - DB saved on disk
PASSED
LREM, remove all the occurrences                                       - DB saved on disk
PASSED
LREM, remove the first occurrence                                      PASSED
LREM, remove non existing element                                      PASSED
LREM, starting from tail with negative count                           - DB saved on disk
PASSED
LREM, starting from tail with negative count (2)                       PASSED
MGET                                                                   - DB saved on disk
PASSED
MGET against non existing key                                          PASSED
MGET against non-string key                                            PASSED
FLUSHALL                                                               - DB saved on disk
PASSED

79 tests, 79 passed, 0 failed
. Client closed connection
. 0 clients connected (0 slaves), 1347660 bytes in use

$ kill -15 %1
[1]+  Terminated              ./redis-server redis.conf

$ vim redis.conf

$ tail -1 redis.conf
requirepass foobared

$ ./redis-server redis.conf &
[1] 52518
$ - Server started, Redis version 0.08
- DB loaded from disk
- The server is now ready to accept connections on port 6379
. 0 clients connected (0 slaves), 1945 bytes in use

$ make test
tclsh test-redis.tcl
. Accepted 127.0.0.1:54492
DEL all keys to start with a clean DB

ERR operation not permitted

    while executing
"::redis::redis_read_reply $fd"
    (procedure "::redis::__dispatch__" line 13)
    invoked from within
"$r keys *"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $code"
    (procedure "test" line 4)
    invoked from within
"test {DEL all keys to start with a clean DB} {
        foreach key [$r keys *] {$r del $key}
        $r dbsize
    } {0}"
    (procedure "main" line 13)
    invoked from within
"main 127.0.0.1 6379"
    invoked from within
"if {[llength $argv] == 0} {
    main 127.0.0.1 6379
} elseif {[llength $argv] == 1 && [lindex $argv 0] eq {stress}} {
    stress
} else {
    main [li..."
    (file "test-redis.tcl" line 630)
. Client closed connection
make: *** [test] Error 1
. 0 clients connected (0 slaves), 2041 bytes in use
. 0 clients connected (0 slaves), 2041 bytes in use

$ kill -15 %1
[1]+  Terminated              ./redis-server redis.conf

$ vim test-redis.tcl

$ git diff test-redis.tcl

15 years agoNasty bug of the new DB format fixed, objects sharing implemented
antirez [Wed, 25 Mar 2009 20:00:48 +0000 (21:00 +0100)] 
Nasty bug of the new DB format fixed, objects sharing implemented

15 years agodoc update
antirez [Wed, 25 Mar 2009 15:49:58 +0000 (16:49 +0100)] 
doc update