perl-Redis.git
11 years agosimple publish script for testing redis2.0
Dobrica Pavlinusic [Sat, 28 Aug 2010 19:43:25 +0000 (21:43 +0200)]
simple publish script for testing

11 years agoTidy up test files
Pedro Melo [Sat, 7 Aug 2010 14:31:32 +0000 (15:31 +0100)]
Tidy up test files

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoAdd support for nested multi-bulk responses:
Pedro Melo [Sat, 7 Aug 2010 12:52:46 +0000 (13:52 +0100)]
Add support for nested multi-bulk responses:

Useful for future MULTI/EXEC implementation

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoFix __read_responses() with multi-bulk replies containing $-1 responses
Pedro Melo [Sat, 7 Aug 2010 12:47:44 +0000 (13:47 +0100)]
Fix __read_responses() with multi-bulk replies containing $-1 responses

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoAdded support for Redis PubSub:
Pedro Melo [Sat, 7 Aug 2010 12:07:26 +0000 (13:07 +0100)]
Added support for Redis PubSub:

 * support commands SUBSCRIBE, UNSUBSCRIBE, PSUBSCRIBE, and PUNSUBSCRIBE:
   * PUBLISH is a regular Redis command, already supported.
 * last argument of subscription changes commands must be a callback, a
   coderef:
   * for each message, the callback will be called with three parameters:
     * the messages data;
     * the topic to whom the message was sent;
     * the subscription that catched this message.
 * you can subscribe to multiple topics or topic matches with the same
   callback: messages to any of those topics will invoke the callback;
 * you can call p?subscribe() multiple times with the same topics or
   topic matching rules, and with different callbacks:
   * we will manage a single Redis subscription, and call all the
     callbacks per message received.
 * p?unsubscribe() calls require the original callback, to remove the
   correct subscription.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoFix __read_response() call in keys(): used wrong command
Pedro Melo [Sat, 7 Aug 2010 11:55:55 +0000 (12:55 +0100)]
Fix __read_response() call in keys(): used wrong command

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoOn quit(), remove our internal buffer even if we can't close the socket
Pedro Melo [Sat, 7 Aug 2010 11:55:02 +0000 (12:55 +0100)]
On quit(), remove our internal buffer even if we can't close the socket

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoAllow size of reads from socket to be tuned
Pedro Melo [Sat, 7 Aug 2010 11:53:26 +0000 (12:53 +0100)]
Allow size of reads from socket to be tuned

If you have big keys, values, or big responses, increasing read_size
will improve your performance, by reducing the number of system calls we
will make to read them.

Defaults to 8Kb

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoFix: __is_valid_command() must deal with both upper and lower-case cmds
Pedro Melo [Sat, 7 Aug 2010 11:49:08 +0000 (12:49 +0100)]
Fix: __is_valid_command() must deal with both upper and lower-case cmds

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoAdded __can_read_sock(): attempts to read from Redis server, non-blocking
Pedro Melo [Sat, 7 Aug 2010 10:40:27 +0000 (11:40 +0100)]
Added __can_read_sock(): attempts to read from Redis server, non-blocking

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoRun perltidy on the Redis.pm class
Pedro Melo [Thu, 5 Aug 2010 16:45:46 +0000 (17:45 +0100)]
Run perltidy on the Redis.pm class

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoAdd initial support for subscriber mode:
Pedro Melo [Thu, 5 Aug 2010 16:44:54 +0000 (17:44 +0100)]
Add initial support for subscriber mode:

When we use any of SUBSCRIBE commands, we need to restrict the
commands we can use after. Only other SUBSCRIBE, or UNSUBSCRIBE commands
are valid.

We added a "mode", is_subscriber, that default to 0 and will be true after
we subscribe something. When is_subscriber is active, invalid commands
will result in an exception.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoCleanup comments
Pedro Melo [Thu, 5 Aug 2010 16:17:32 +0000 (17:17 +0100)]
Cleanup comments

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoRewrote response reading code, moved INFO and KEYS out of AUTOLOAD
Pedro Melo [Thu, 5 Aug 2010 15:20:40 +0000 (16:20 +0100)]
Rewrote response reading code, moved INFO and KEYS out of AUTOLOAD

 * response reading code uses less syscalls with big values: more speed;
 * multi-bulk response fixed: supports mixed items in the response,
   like $ and : in the same response - this happens with SUBSCRIBE
   messages
 * INFO and KEYS have their own methods now: no more if's for special
   cases in AUTOLOAD.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoAdded tests with big values
Pedro Melo [Thu, 5 Aug 2010 11:44:12 +0000 (12:44 +0100)]
Added tests with big values

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoMove QUIT command out of the common case
Pedro Melo [Wed, 4 Aug 2010 20:31:01 +0000 (21:31 +0100)]
Move QUIT command out of the common case

Make sure we get rid of the IO::Socket::INET object on QUIT.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoExtract send command logic from AUTOLOAD; make it more robust
Pedro Melo [Wed, 4 Aug 2010 19:30:18 +0000 (20:30 +0100)]
Extract send command logic from AUTOLOAD; make it more robust

We deal with partial writes now. Usually you won't notice the need until
you hit a very active client against a very loaded server.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoPromote all die's to confess(): more usefull information in case of errors
Pedro Melo [Wed, 4 Aug 2010 19:16:40 +0000 (20:16 +0100)]
Promote all die's to confess(): more usefull information in case of errors

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoMake debug prettier
Pedro Melo [Wed, 4 Aug 2010 19:08:52 +0000 (20:08 +0100)]
Make debug prettier

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoAdd support for Redis 2.x, and other tweaks:
Pedro Melo [Wed, 4 Aug 2010 15:51:00 +0000 (16:51 +0100)]
Add support for Redis 2.x, and other tweaks:

 * send commands using the multi-bulk protocol: allows you to use binary
   keys and values;
 * keep the default of utf8 encoding, but allow for other encodings,
   including binary;
 * remove old bulk_command table: no longer used, with the new multi-bulk
   protocol for sending commands;
 * remove 'use bytes', no longer needed with the new encoding algorithm;
 * adjust the 'KEYS' command to also support multi-bulk responses on
   newer servers;
 * make sure bulk responses of 0 size return an empty string;
 * perl-ish multi-bulk response.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoMake sure setting/getting an empty string works
Pedro Melo [Wed, 4 Aug 2010 15:32:06 +0000 (16:32 +0100)]
Make sure setting/getting an empty string works

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoMake sure you pass each SORT argument separate
Pedro Melo [Wed, 4 Aug 2010 14:31:48 +0000 (15:31 +0100)]
Make sure you pass each SORT argument separate

Signed-off-by: Pedro Melo <melo@simplicidade.org>
11 years agoRedis GET with undef is a protocol error for 2.x and beyond
Pedro Melo [Wed, 4 Aug 2010 14:28:15 +0000 (15:28 +0100)]
Redis GET with undef is a protocol error for 2.x and beyond

Signed-off-by: Pedro Melo <melo@simplicidade.org>
12 years agoadd scripts/* to MANIFEST master
U-LIFEBOOK\Administrator [Fri, 30 Apr 2010 07:29:31 +0000 (15:29 +0800)]
add scripts/* to MANIFEST

12 years agoadd lib/Redis/* to MANIFEST so that CPAN distro contains relevant files
U-LIFEBOOK\Administrator [Fri, 30 Apr 2010 07:27:52 +0000 (15:27 +0800)]
add lib/Redis/* to MANIFEST so that CPAN distro contains relevant files

12 years agoreturn undef makes @list = ( undef ), which is sad
sunnavy [Wed, 21 Apr 2010 18:28:26 +0000 (02:28 +0800)]
return undef makes @list = ( undef ), which is sad

12 years agonotice utf-8 fix 1.2001
Dobrica Pavlinusic [Fri, 19 Mar 2010 14:38:14 +0000 (14:38 +0000)]
notice utf-8 fix

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@72 447b33ff-793d-4489-8442-9bea7d161be5

12 years agoadded encoding notice
Dobrica Pavlinusic [Fri, 19 Mar 2010 14:38:13 +0000 (14:38 +0000)]
added encoding notice

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@71 447b33ff-793d-4489-8442-9bea7d161be5

12 years agouse Encode::_utf8_on to mark bytes from Redis socket as utf-8 chars
Dobrica Pavlinusic [Wed, 17 Mar 2010 20:26:07 +0000 (20:26 +0000)]
use Encode::_utf8_on to mark bytes from Redis socket as utf-8 chars

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@70 447b33ff-793d-4489-8442-9bea7d161be5

12 years agoadded use bytes to support utf-8 encoded strings
Dobrica Pavlinusic [Wed, 17 Mar 2010 18:22:09 +0000 (18:22 +0000)]
added use bytes to support utf-8 encoded strings

We are not round-tripping utf-8 encoding strings correctly in
this version. We will get string back wothout perl utf-8 flag

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@69 447b33ff-793d-4489-8442-9bea7d161be5

12 years agoadded CPAN RT #54841 info
Dobrica Pavlinusic [Wed, 17 Mar 2010 17:19:10 +0000 (17:19 +0000)]
added CPAN RT #54841 info

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@68 447b33ff-793d-4489-8442-9bea7d161be5

12 years agodocument changes in new version
Dobrica Pavlinusic [Wed, 17 Mar 2010 16:58:13 +0000 (16:58 +0000)]
document changes in new version

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@67 447b33ff-793d-4489-8442-9bea7d161be5

12 years agoversion bump [1.2001]
Dobrica Pavlinusic [Wed, 17 Mar 2010 16:58:00 +0000 (16:58 +0000)]
version bump [1.2001]

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@66 447b33ff-793d-4489-8442-9bea7d161be5

12 years agoAdded support for Redis >= 1.2 bulk commands
Dobrica Pavlinusic [Wed, 17 Mar 2010 16:24:28 +0000 (16:24 +0000)]
Added support for Redis >= 1.2 bulk commands

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@65 447b33ff-793d-4489-8442-9bea7d161be5

12 years agoconfess command and result
Dobrica Pavlinusic [Thu, 3 Dec 2009 18:36:56 +0000 (18:36 +0000)]
confess command and result

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@64 447b33ff-793d-4489-8442-9bea7d161be5

12 years agouse Data::Dumper instead of Data::Dump so all our dependencies are perl core modules 0.0801
Dobrica Pavlinusic [Mon, 14 Sep 2009 11:37:25 +0000 (11:37 +0000)]
use Data::Dumper instead of Data::Dump so all our dependencies are perl core modules

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@63 447b33ff-793d-4489-8442-9bea7d161be5

12 years agotest contructor with server argument
Dobrica Pavlinusic [Sat, 12 Sep 2009 15:13:40 +0000 (15:13 +0000)]
test contructor with server argument

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@62 447b33ff-793d-4489-8442-9bea7d161be5

12 years agoversion bump [0.0801]
Dobrica Pavlinusic [Sat, 12 Sep 2009 15:08:59 +0000 (15:08 +0000)]
version bump [0.0801]

- implement constructior parametars
- use enviroment variables REDIS_SERVER and REDIS_DEBUG
- create new socket for each object allowing concurrency

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@61 447b33ff-793d-4489-8442-9bea7d161be5

12 years agoadded Redis::Hash benchmarks
Dobrica Pavlinusic [Sun, 26 Jul 2009 01:33:13 +0000 (01:33 +0000)]
added Redis::Hash benchmarks

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@60 447b33ff-793d-4489-8442-9bea7d161be5

13 years agodocument and test redis object for issuing normal commands
Dobrica Pavlinusic [Wed, 17 Jun 2009 16:49:17 +0000 (16:49 +0000)]
document and test redis object for issuing normal commands

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@59 447b33ff-793d-4489-8442-9bea7d161be5

13 years agotest that info returns HASH
Dobrica Pavlinusic [Wed, 17 Jun 2009 16:47:06 +0000 (16:47 +0000)]
test that info returns HASH

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@58 447b33ff-793d-4489-8442-9bea7d161be5

13 years agosinter ordering of results (in insertion order?) changed with recent redis from git
Dobrica Pavlinusic [Wed, 17 Jun 2009 16:19:17 +0000 (16:19 +0000)]
sinter ordering of results (in insertion order?) changed with recent redis from git

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@57 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoimplement same benchmarks as redis-benchmark in C
Dobrica Pavlinusic [Wed, 25 Mar 2009 00:03:06 +0000 (00:03 +0000)]
implement same benchmarks as redis-benchmark in C
with comparable results and rnd variant for comparison

(I do see some fuzz in results of perl benchmark
which aren't there for C version, so I suspect perl
as culprit, and not Redis :-)

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@56 447b33ff-793d-4489-8442-9bea7d161be5

13 years agofix warnings
Dobrica Pavlinusic [Tue, 24 Mar 2009 23:43:24 +0000 (23:43 +0000)]
fix warnings

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@55 447b33ff-793d-4489-8442-9bea7d161be5

13 years agocleanup
Dobrica Pavlinusic [Tue, 24 Mar 2009 23:43:16 +0000 (23:43 +0000)]
cleanup

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@54 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoupdate bindings for new protocol 0.08
Dobrica Pavlinusic [Tue, 24 Mar 2009 22:51:53 +0000 (22:51 +0000)]
update bindings for new protocol 0.08

new protocol is self-describing, so all commands are
now implemented using AUTOLOAD

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@53 447b33ff-793d-4489-8442-9bea7d161be5

13 years agobenchmark bindings and redis server
Dobrica Pavlinusic [Mon, 23 Mar 2009 14:45:32 +0000 (14:45 +0000)]
benchmark bindings and redis server

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@52 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoinfo
Dobrica Pavlinusic [Mon, 23 Mar 2009 11:44:25 +0000 (11:44 +0000)]
info

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@51 447b33ff-793d-4489-8442-9bea7d161be5

13 years agobgsave, lastsave, shutdown
Dobrica Pavlinusic [Mon, 23 Mar 2009 11:40:50 +0000 (11:40 +0000)]
bgsave, lastsave, shutdown

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@50 447b33ff-793d-4489-8442-9bea7d161be5

13 years agocomment debug output
Dobrica Pavlinusic [Mon, 23 Mar 2009 11:38:56 +0000 (11:38 +0000)]
comment debug output

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@49 447b33ff-793d-4489-8442-9bea7d161be5

13 years agosave
Dobrica Pavlinusic [Mon, 23 Mar 2009 11:33:21 +0000 (11:33 +0000)]
save

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@48 447b33ff-793d-4489-8442-9bea7d161be5

13 years agosort
Dobrica Pavlinusic [Mon, 23 Mar 2009 11:30:40 +0000 (11:30 +0000)]
sort

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@47 447b33ff-793d-4489-8442-9bea7d161be5

13 years agocomment debug output
Dobrica Pavlinusic [Mon, 23 Mar 2009 11:30:29 +0000 (11:30 +0000)]
comment debug output

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@46 447b33ff-793d-4489-8442-9bea7d161be5

13 years agomget
Dobrica Pavlinusic [Mon, 23 Mar 2009 10:42:29 +0000 (10:42 +0000)]
mget

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@45 447b33ff-793d-4489-8442-9bea7d161be5

13 years agosort keys so we get predictible order for test
Dobrica Pavlinusic [Mon, 23 Mar 2009 09:22:30 +0000 (09:22 +0000)]
sort keys so we get predictible order for test

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@44 447b33ff-793d-4489-8442-9bea7d161be5

13 years agofixed Redis::Hash keys problem,
Dobrica Pavlinusic [Sun, 22 Mar 2009 20:04:17 +0000 (20:04 +0000)]
fixed Redis::Hash keys problem,
separate prefix from key with :,
return key names without prefix

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@43 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoRedis::Hash tie with optional prefix
Dobrica Pavlinusic [Sun, 22 Mar 2009 19:17:51 +0000 (19:17 +0000)]
Redis::Hash tie with optional prefix

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@42 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoflushdb, flushall
Dobrica Pavlinusic [Sun, 22 Mar 2009 18:42:21 +0000 (18:42 +0000)]
flushdb, flushall

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@41 447b33ff-793d-4489-8442-9bea7d161be5

13 years agomove
Dobrica Pavlinusic [Sun, 22 Mar 2009 18:39:06 +0000 (18:39 +0000)]
move

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@40 447b33ff-793d-4489-8442-9bea7d161be5

13 years agocleanup fails on empty database
Dobrica Pavlinusic [Sun, 22 Mar 2009 18:18:26 +0000 (18:18 +0000)]
cleanup fails on empty database

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@39 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoselect
Dobrica Pavlinusic [Sun, 22 Mar 2009 18:17:05 +0000 (18:17 +0000)]
select

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@38 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoREDIS enviroment variable controlls debug output
Dobrica Pavlinusic [Sun, 22 Mar 2009 18:07:46 +0000 (18:07 +0000)]
REDIS enviroment variable controlls debug output

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@37 447b33ff-793d-4489-8442-9bea7d161be5

13 years agofix boilerplate texts
Dobrica Pavlinusic [Sun, 22 Mar 2009 18:05:12 +0000 (18:05 +0000)]
fix boilerplate texts

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@36 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoadded link to Redis::List
Dobrica Pavlinusic [Sun, 22 Mar 2009 17:53:57 +0000 (17:53 +0000)]
added link to Redis::List

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@35 447b33ff-793d-4489-8442-9bea7d161be5

13 years agosinterstore
Dobrica Pavlinusic [Sun, 22 Mar 2009 17:37:46 +0000 (17:37 +0000)]
sinterstore

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@34 447b33ff-793d-4489-8442-9bea7d161be5

13 years agosinter
Dobrica Pavlinusic [Sun, 22 Mar 2009 17:31:40 +0000 (17:31 +0000)]
sinter

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@33 447b33ff-793d-4489-8442-9bea7d161be5

13 years agosismember
Dobrica Pavlinusic [Sun, 22 Mar 2009 17:06:34 +0000 (17:06 +0000)]
sismember

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@32 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoscard
Dobrica Pavlinusic [Sun, 22 Mar 2009 17:05:00 +0000 (17:05 +0000)]
scard

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@31 447b33ff-793d-4489-8442-9bea7d161be5

13 years agosadd, srem
Dobrica Pavlinusic [Sun, 22 Mar 2009 17:02:46 +0000 (17:02 +0000)]
sadd, srem

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@30 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoRedis::List to tie perl arrays
Dobrica Pavlinusic [Sun, 22 Mar 2009 16:16:11 +0000 (16:16 +0000)]
Redis::List to tie perl arrays

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@29 447b33ff-793d-4489-8442-9bea7d161be5

13 years agosupport for set foo => undef
Dobrica Pavlinusic [Sun, 22 Mar 2009 15:02:42 +0000 (15:02 +0000)]
support for set foo => undef

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@28 447b33ff-793d-4489-8442-9bea7d161be5

13 years agolpop, rpop
Dobrica Pavlinusic [Sun, 22 Mar 2009 13:44:19 +0000 (13:44 +0000)]
lpop, rpop

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@27 447b33ff-793d-4489-8442-9bea7d161be5

13 years agolrem
Dobrica Pavlinusic [Sun, 22 Mar 2009 13:37:49 +0000 (13:37 +0000)]
lrem

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@26 447b33ff-793d-4489-8442-9bea7d161be5

13 years agocheck type of list
Dobrica Pavlinusic [Sun, 22 Mar 2009 13:20:34 +0000 (13:20 +0000)]
check type of list

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@25 447b33ff-793d-4489-8442-9bea7d161be5

13 years agolset, generalize _sock_send_bulk to any number of arguments
Dobrica Pavlinusic [Sun, 22 Mar 2009 13:18:11 +0000 (13:18 +0000)]
lset, generalize _sock_send_bulk to any number of arguments

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@24 447b33ff-793d-4489-8442-9bea7d161be5

13 years agolindex
Dobrica Pavlinusic [Sun, 22 Mar 2009 13:09:15 +0000 (13:09 +0000)]
lindex

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@23 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoltrim
Dobrica Pavlinusic [Sun, 22 Mar 2009 10:45:06 +0000 (10:45 +0000)]
ltrim

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@22 447b33ff-793d-4489-8442-9bea7d161be5

13 years agolrange, _sock_send refactor
Dobrica Pavlinusic [Sun, 22 Mar 2009 10:36:22 +0000 (10:36 +0000)]
lrange, _sock_send refactor

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@21 447b33ff-793d-4489-8442-9bea7d161be5

13 years agollen, _sock_send
Dobrica Pavlinusic [Sun, 22 Mar 2009 09:51:34 +0000 (09:51 +0000)]
llen, _sock_send

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@20 447b33ff-793d-4489-8442-9bea7d161be5

13 years agolpush
Dobrica Pavlinusic [Sun, 22 Mar 2009 09:46:14 +0000 (09:46 +0000)]
lpush

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@19 447b33ff-793d-4489-8442-9bea7d161be5

13 years agorpush, refactor _sock_send_bulk to expect +OK
Dobrica Pavlinusic [Sun, 22 Mar 2009 09:44:30 +0000 (09:44 +0000)]
rpush, refactor _sock_send_bulk to expect +OK

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@18 447b33ff-793d-4489-8442-9bea7d161be5

13 years agodbsize
Dobrica Pavlinusic [Sun, 22 Mar 2009 09:22:39 +0000 (09:22 +0000)]
dbsize

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@17 447b33ff-793d-4489-8442-9bea7d161be5

13 years agouse stable key names to have predictible results
Dobrica Pavlinusic [Sat, 21 Mar 2009 23:39:53 +0000 (23:39 +0000)]
use stable key names to have predictible results

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@16 447b33ff-793d-4489-8442-9bea7d161be5

13 years agocleanup NX variants of commands
Dobrica Pavlinusic [Sat, 21 Mar 2009 23:39:20 +0000 (23:39 +0000)]
cleanup NX variants of commands

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@15 447b33ff-793d-4489-8442-9bea7d161be5

13 years agorename, renamenx
Dobrica Pavlinusic [Sat, 21 Mar 2009 23:36:26 +0000 (23:36 +0000)]
rename, renamenx

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@14 447b33ff-793d-4489-8442-9bea7d161be5

13 years agorandomkey
Dobrica Pavlinusic [Sat, 21 Mar 2009 23:26:46 +0000 (23:26 +0000)]
randomkey

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@13 447b33ff-793d-4489-8442-9bea7d161be5

13 years agokeys, _sock_result_bulk
Dobrica Pavlinusic [Sat, 21 Mar 2009 23:23:37 +0000 (23:23 +0000)]
keys, _sock_result_bulk

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@12 447b33ff-793d-4489-8442-9bea7d161be5

13 years agomake _sock_result private, type
Dobrica Pavlinusic [Sat, 21 Mar 2009 23:09:48 +0000 (23:09 +0000)]
make _sock_result private, type

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@11 447b33ff-793d-4489-8442-9bea7d161be5

13 years agodel, small refacture into sock_result
Dobrica Pavlinusic [Sat, 21 Mar 2009 23:05:02 +0000 (23:05 +0000)]
del, small refacture into sock_result

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@10 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoexists
Dobrica Pavlinusic [Sat, 21 Mar 2009 22:54:10 +0000 (22:54 +0000)]
exists

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@9 447b33ff-793d-4489-8442-9bea7d161be5

13 years agodecr
Dobrica Pavlinusic [Sat, 21 Mar 2009 22:48:46 +0000 (22:48 +0000)]
decr

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@8 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoincr, incrby
Dobrica Pavlinusic [Sat, 21 Mar 2009 22:38:56 +0000 (22:38 +0000)]
incr, incrby

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@7 447b33ff-793d-4489-8442-9bea7d161be5

13 years agodependencies
Dobrica Pavlinusic [Sat, 21 Mar 2009 22:22:07 +0000 (22:22 +0000)]
dependencies

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@6 447b33ff-793d-4489-8442-9bea7d161be5

13 years agosetnx
Dobrica Pavlinusic [Sat, 21 Mar 2009 22:20:51 +0000 (22:20 +0000)]
setnx

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@5 447b33ff-793d-4489-8442-9bea7d161be5

13 years agotest non-existing key and strip cr/lf after get value
Dobrica Pavlinusic [Sat, 21 Mar 2009 21:53:15 +0000 (21:53 +0000)]
test non-existing key and strip cr/lf after get value

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@4 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoset, get
Dobrica Pavlinusic [Sat, 21 Mar 2009 21:40:53 +0000 (21:40 +0000)]
set, get

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@3 447b33ff-793d-4489-8442-9bea7d161be5

13 years agoquit, ping
Dobrica Pavlinusic [Sat, 21 Mar 2009 21:25:52 +0000 (21:25 +0000)]
quit, ping

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@2 447b33ff-793d-4489-8442-9bea7d161be5

13 years agomodule-starter --module Redis --author="Dobrica Pavlinusic" --email=dpavlin@rot13.org
Dobrica Pavlinusic [Sat, 21 Mar 2009 20:20:45 +0000 (20:20 +0000)]
module-starter --module Redis --author="Dobrica Pavlinusic" --email=dpavlin@rot13.org

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@1 447b33ff-793d-4489-8442-9bea7d161be5