1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
Commit Graph

456 Commits

Author SHA1 Message Date
Matt Ranney
85bd648adc Export RedisClient prototype to support extending.
See examples/extend.js for a simple example.
Remove command list from exports while I was in there.
2010-10-05 11:30:57 -07:00
Aivo Paas
3495b60047 Fixed .multi() to convert HGETALL result to an object 2010-10-02 22:00:57 +03:00
Matt Ranney
8356ecfda8 Simplify lowercase command prototype.
Suggested by Rasmus Andersson
2010-09-30 09:15:19 -07:00
Matt Ranney
8ec36ae383 Merge remote branch 'Tim_Smart/performance' 2010-09-29 21:32:07 -07:00
Matt Ranney
c970b12c25 Reset all parser state on error. 2010-09-29 21:31:36 -07:00
Tim-Smart
4d70a8de4b Loop optimizations 2010-09-30 17:18:53 +13:00
Orion Henry
5321a1746f have the parser try to recover from errors when it has them and communicate this back to the user 2010-09-29 17:10:01 -07:00
Orion Henry
98e27c43dd reset subscriptions when the connection is broken 2010-09-27 17:23:23 -07:00
Orion Henry
dcbb87dff7 fix bug not allowing you to quit while in subscribe mode - added test 2010-09-27 17:11:12 -07:00
Orion Henry
71763dcd66 Send the number of bytes, not characters. Fixes unrecoverable bug if multibyte characters are used. 2010-09-27 08:26:59 -07:00
Tim-Smart
a664565922 Allow array args in multi as before 2010-09-24 18:33:38 -07:00
Matt Ranney
155d321544 All Multi objects to be re-used. 2010-09-24 14:03:36 -07:00
Matt Ranney
d19e893f28 Support new and imrpoved MULTI syntax. 2010-09-24 13:16:02 -07:00
Matt Ranney
29f10cd593 Merge remote branch 'tj/features/multi'
Conflicts:
	test.js
2010-09-24 10:51:21 -07:00
Matt Ranney
9e65e6a6a8 Improve retry logic. 2010-09-23 16:58:19 -07:00
Matt Ranney
6e64d81800 Fix parsing mb nil in nested multi-bulk reply. 2010-09-23 12:21:52 -07:00
Tj Holowaychuk
91ebe64dae Implemented alternate MULTI syntax
Usage:

  client
    .multi
    .set(foo, bar)
    .set(counter, 1)
    .incr(counter)
    .exec(function(err, replies){});
2010-09-22 18:38:55 -07:00
Matt Ranney
76ecd927cd Support for nested multi-bulk replies. 2010-09-22 17:35:26 -07:00
Orion Henry
6c36ed09c0 createClient was ignoring the host arg 2010-09-22 13:16:33 -07:00
Matt Ranney
0aa7676eab Fix style and global leaks found with JSLint. 2010-09-22 11:36:31 -07:00
rick
05446cd056 console.log typo 2010-09-20 12:33:05 -07:00
rick
0b51924aa7 ensure client emits connect and end events 2010-09-20 12:29:35 -07:00
Matt Ranney
6359a02208 Add QUIT command for orderly shutdown. 2010-09-20 11:56:30 -07:00
Tj Holowaychuk
a93020c555 Fixed null HGETALL bug causing exception 2010-09-20 07:32:45 -07:00
Matt Ranney
ed77cb4d95 Convert pub/sub channel names into strings. 2010-09-19 23:52:59 -07:00
Matt Ranney
03fc7c203e Add pub/sub support. 2010-09-19 23:46:43 -07:00
Matt Ranney
78a9ceaf20 Merge remote branch 'Tim_Smart/zero-length' 2010-09-18 12:04:17 -07:00
Matt Ranney
243f63866e Merge remote branch 'Tim_Smart/retry-loop' 2010-09-18 12:04:15 -07:00
Matt Ranney
715b097ac5 Merge remote branch 'Tim_Smart/remove-log' 2010-09-18 12:04:10 -07:00
Tim-Smart
b55d7c6f44 Prevent retry loop 2010-09-18 15:02:17 +12:00
Tj Holowaychuk
96036632d4 Better toArray(), only need len once 2010-09-17 19:49:30 -07:00
Tj Holowaychuk
1e471abe1c Fixed toArray() indentation 2010-09-17 19:34:26 -07:00
Tj Holowaychuk
c0f0877bcd Replaced Array.prototype.slice.call() with faster adhoc toArray(). ~200ms saved in benchmarks 2010-09-17 19:31:59 -07:00
Tim-Smart
064d160333 zero-length bulk data + int optimization 2010-09-18 14:11:27 +12:00
Tim-Smart
59068b2b6d Only log in debug mode 2010-09-18 12:49:48 +12:00
Matt Ranney
2e367f5422 Send 0 length buffers properly.
Still need to handle 0 length bulk data properly though.  Whoops.
2010-09-17 17:32:14 -07:00
Tj Holowaychuk
a84c217827 Fixed zero length multibulk. Passing null not an empty array 2010-09-17 16:47:46 -07:00
Matt Ranney
4c838a23b4 Merge remote branch 'timsmart/hsetnx' 2010-09-17 16:33:18 -07:00
Matt Ranney
e82fa1c5eb Grow return bufer if reply is too large. 2010-09-17 16:21:48 -07:00
Tim-Smart
cf4921cb76 Add HSETNX command 2010-09-18 11:10:22 +12:00
Matt Ranney
292dbeef52 Merge remote branch 'tj/bugs/empty-keys' 2010-09-17 15:42:05 -07:00
Matt Ranney
48fd5f712e Update comments. 2010-09-17 15:42:00 -07:00
Tj Holowaychuk
d7c5fc6d6e Fixed zero-length mutlibulk replies 2010-09-17 15:35:26 -07:00
Tj Holowaychuk
bcbf3834e1 Implemented HGETALL response as object 2010-09-17 14:52:32 -07:00
Matt Ranney
c4e13514d9 Queue commands sent before a connection is available. 2010-09-17 14:24:10 -07:00
Matt Ranney
374b926cb7 Clean up small Buffer optimizations. 2010-09-17 11:16:19 -07:00
Matt Ranney
98c1f8613d Merge remote branch 'Tim_Smart/client-close' 2010-09-17 08:06:32 -07:00
Tim-Smart
b7bb32940e s/close/end/ 2010-09-17 23:18:57 +12:00
Tim-Smart
5a56d0fa03 client::close method 2010-09-17 23:13:29 +12:00
Tim-Smart
a69e60b70f Fix queue::length and add forEach 2010-09-17 23:08:50 +12:00