Commit Graph

9529 Commits

Author SHA1 Message Date
antirez
3c910136c1 doc update 2009-04-21 00:33:34 +02:00
antirez
6208b3a776 Non blocking replication (finally!). C-side linked lists API improved. 2009-04-20 23:51:51 +02:00
antirez
40d224a9e3 SUNION, SUNIONSTORE, Initial work on non blocking replication 2009-04-19 10:02:36 +02:00
antirez
6bea3d5f58 Redis 0.091 released 2009-04-10 13:49:50 +02:00
antirez
5faa6025f5 SINTER/SINTERSTORE/SLEMENTS fix: misisng keys are now not errors, but just like empty sets 2009-04-10 13:43:41 +02:00
antirez
cc1db901e9 doc changes 2009-04-09 08:44:55 +02:00
antirez
290deb8b8c TODO changes, minor change to default redis.conf 2009-04-08 13:46:26 +02:00
antirez
7f4e28e750 html doc updated 2009-04-08 13:42:34 +02:00
antirez
0bd06e524a library clients update scripts 2009-04-08 13:26:36 +02:00
antirez
9495122b18 Ruby client updated 2009-04-08 13:20:03 +02:00
antirez
928394cd12 Lua client updated 2009-04-08 13:17:55 +02:00
antirez
8b382972b0 Changelog updated 2009-04-08 12:25:15 +02:00
antirez
575acbf1f7 Merge git://github.com/ludoo/redis 2009-04-08 12:13:56 +02:00
Ludovico Magnocavallo
9a2944ace2 add expire command to the php lib 2009-04-08 12:09:56 +02:00
Ludovico Magnocavallo
bb7dcc1e51 fix decode bug, add flush and info commands 2009-04-08 12:08:05 +02:00
Bob Potter
5a6e8b1daa Rearrange redisObject struct to reduce memory usage in 64bit environments (as recommended http://groups.google.com/group/redis-db/msg/68f5a743f8f4e287) 2009-04-07 18:40:33 -05:00
Bob Potter
27dd15268c ruby19 compat: use each_line on string 2009-04-07 18:36:23 -05:00
Bob Potter
5fba9f717b 64bit fixes for usedmemory 2009-04-07 18:33:44 -05:00
antirez
ce7bef0795 RANDOMKEY issue 26 fixed, generic test + regression added 2009-04-08 00:59:53 +02:00
antirez
05557f6de7 Don't accept SAVE if BGSAVE is in progress 2009-04-06 10:29:36 +02:00
Ludovico Magnocavallo
ab48d029d9 add expire command to the python lib 2009-04-06 10:19:26 +02:00
antirez
bb32ede52e persistent EXPIRE 2009-04-03 11:07:37 +02:00
antirez
0c66a4713a dirty increment was missing in two points. TODO updated 2009-04-03 10:04:51 +02:00
antirez
7a596b2f0f LZF configured to initalize the HT in order to be determinsitic and play well with valgrind 2009-04-02 23:00:27 +02:00
Ludovico Magnocavallo
491d908b0a fix select test 2009-04-02 17:34:42 +02:00
Ludovico Magnocavallo
39c8c0f22d fix trailing cr+nl in values 2009-04-02 17:33:04 +02:00
antirez
88e859984a compression/decompression of large values on disk now working 2009-04-02 17:10:02 +02:00
antirez
40c32c3e49 disable LZF compression since it's not able to load the DB for now, the load part is missing 2009-04-02 10:02:06 +02:00
antirez
d07519372b new LZF files added 2009-04-02 10:00:49 +02:00
antirez
2e77c2ee72 Fixed issue 23 about AUTH 2009-04-02 09:57:06 +02:00
antirez
774e304780 Issue 22 fixed 2009-04-02 09:54:45 +02:00
antirez
94754ccc3c non-lazy expired keys purging implemented 2009-04-01 20:40:00 +02:00
antirez
98c541c517 fastlz dependence removed 2009-04-01 14:36:29 +02:00
antirez
3305306f09 Initial implementation of EXPIRE 2009-04-01 13:22:35 +02:00
antirez
300827b60d TODO updated 2009-03-30 16:27:35 +02:00
antirez
378fd42197 changelog added 2009-03-30 12:13:43 +02:00
antirez
8de4907a86 redis-sha1 utility added 2009-03-28 11:50:27 +01:00
antirez
e3566d4b46 Integer encoding implemented in dump file. Doc updated 2009-03-28 10:58:19 +01:00
antirez
e9a9afd35e feature macros defined to play well with C99 2009-03-27 22:01:04 +01:00
antirez
23d4709dfb feature macros defined to play well with C99 2009-03-27 22:00:27 +01:00
antirez
53f8c2c71e now Redis is C99-ok 2009-03-27 21:37:57 +01:00
antirez
17be1a4a17 IMPORTANT FIX: new dump format implementation was broken. Now it's ok but tests for the 32-bit case values are needed 2009-03-27 21:27:42 +01:00
antirez
a4d1ba9a73 ANSI-C compatibility changes 2009-03-27 20:48:32 +01:00
antirez
29fac6170a Ruby client library updated. Important changes in this new version! 2009-03-27 12:14:35 +01:00
antirez
1a4601492c Lua client added thanks to Daniele Alessandri 2009-03-26 17:24:53 +01:00
antirez
f2aa84bd63 Lua client added thanks to Daniele Alessandri 2009-03-26 17:23:51 +01:00
antirez
e63943a450 AUTH merged from Brian Hammond fork, reworked a bit to fix minor problems 2009-03-26 11:46:14 +01:00
Brian Hammond
abcb223ec0 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
2009-03-25 23:03:56 -04:00
antirez
10c43610de Nasty bug of the new DB format fixed, objects sharing implemented 2009-03-25 21:00:48 +01:00
antirez
d9f650b990 doc update 2009-03-25 16:49:58 +01:00