a5be65f71c
COW friendly versions of SPOP and SRANDMEMBER commands, with some change to the set encoding-agnostic API.
2010-12-09 10:21:02 +01:00
d51ebef509
LRANGE converted into a COW friendly command. Some refactoring, comment, and new addReply*() family function added in the process.
2010-12-07 16:33:13 +01:00
a4ce758155
Don't execute commands for clients when they are unblocked
2010-12-06 16:39:39 +01:00
ecf9401415
Fix case and indent
2010-12-06 16:04:42 +01:00
8a88c368ed
Check other blocked clients when value could not be pushed
2010-12-06 16:04:10 +01:00
ac06fc011d
Move code for pushing on a (blocking) RPOPLPUSH
2010-12-06 14:48:58 +01:00
5fa95ad763
Rename blpop_blocked_clients to bpop_blocked_clients
2010-12-06 14:05:01 +01:00
c8a0070a61
Move timeout logic
2010-12-06 13:45:48 +01:00
bc8ffafeb9
Merge branch 'master' into brpoplpush
2010-12-06 12:31:56 +01:00
bbac56c2f8
added support for ctrl-l and clear command into redis-cli. To clear the screen is a good idea from time to time :). Also linenoise updated to the current version to support this new feature.
2010-12-01 11:18:59 +01:00
ce260f736e
minor merge conflicts merging cli-help branch fixed
2010-11-30 11:39:55 +01:00
baa14ef913
Fix BRPOPLPUSH behavior for all use cases.
2010-11-29 23:52:07 -03:00
8987bf23bf
Adhere to conventions.
2010-11-29 23:52:07 -03:00
e3c51c4b1b
Rename bstate to bpop.
2010-11-29 23:52:07 -03:00
59bd44d1c8
Remove warning.
2010-11-29 23:52:07 -03:00
7c25a43adc
Handle BRPOPLPUSH inside a transaction.
2010-11-29 23:52:07 -03:00
ba3b474111
Refactor code for BRPOPLPUSH.
2010-11-29 23:52:07 -03:00
357a841714
Move to struct.
2010-11-29 23:52:07 -03:00
b2a7fd0cf7
BRPOPLPUSH.
2010-11-29 23:52:07 -03:00
8a979f0390
Fix case in RPOPLPUSH.
2010-11-29 23:52:07 -03:00
b2cc45bfbc
Refactor and support help for command names with spaces
2010-11-29 20:26:32 +01:00
41945ba6ae
Use linenoise completion API from redis-cli
2010-11-29 19:27:36 +01:00
d8d528e992
quick and dirty fix for hiredis bug creating problem with the new redis-cli connect commmand. Also change prompt when redis-cli is not connected
2010-11-29 12:20:17 +01:00
efcf948c1a
new redis-cli command connect
2010-11-29 12:17:55 +01:00
a2a69d5803
Refactor help-related code into redis-cli.c
2010-11-28 21:37:19 +01:00
50d0e82d54
Update help.h generator script to output man-style argument list
2010-11-28 17:45:58 +01:00
2612e0521f
Merge remote branch 'visionmedia/cli-help' into cli-help
2010-11-26 20:46:42 +01:00
a4e48b417d
Don't hardcode make to "make"
2010-11-21 16:44:17 +01:00
bd70a5f588
Stop using /dev/null to find out the serialized object length
...
Now the rdbSave* functions return the number of bytes written (or
required to write) in serializing a Redis object, writing to /dev/null
and using ftell (which doesn't work on FreeBSD) isn't needed anymore.
2010-11-21 16:31:27 +01:00
9a68cf91f0
Wrapper around fwrite to make API consistent
2010-11-21 16:12:25 +01:00
8a623a98c3
Return number of bytes written from rdbSave* functions
2010-11-21 16:07:46 +01:00
5397f2b596
Added redis-cli interactive help support
...
updated via commands.json in redis-doc repo. Currently
use `make src/help.h` to re-generate. The following
are valid from the REPL:
help
help [command]
help [group]
help groups
ex:
help sort
help hash
2010-11-16 05:50:26 -08:00
9fd01051bf
Fix for bug 374, thanks to Jeremy Zawodny for reporting and tracing why it was crashing.
2010-11-12 20:02:20 +01:00
0c2f75c6d8
volatile-lru maxmemory policy segfault fixed, thanks to Anthony Lauzon for reporting the problem with the patch. Original patch modified a bit in order to avoid the double lookup if the policy is allkeys-lru
2010-11-11 13:19:17 +01:00
11fd0c422b
now redis-cli is able to show the Git SHA1 in the version output
2010-11-08 16:26:02 +01:00
d9d8ccab93
make sure to flush stdout every line read in monitor mode, to play well with redirection to file
2010-11-08 16:14:15 +01:00
5402c4262e
added noeviction policy to redis maxmemory. ZSCORE removed from the list of commands that can't be called when we are low on memory, this command was added in the past for a stupid error.
2010-11-08 16:12:16 +01:00
240f8dbf3f
build redis-server at the end so have a more pleasing to see Make output and the advice to run the test suite at the end.
2010-11-08 13:19:58 +01:00
be98a33b51
fixed compilation with 32bit target
2010-11-08 12:53:36 +01:00
97e7f8aec3
non blocking loading of the DB / AOF with informations and ETA in INFO output
2010-11-08 11:52:03 +01:00
645e9962cb
version bumped to 2.1.7 after merging with aaslave branch for non blocking slaves
2010-11-05 11:00:20 +01:00
3b5e72d402
Merge branch 'aaslave'
2010-11-05 10:59:49 +01:00
ecc72ca17f
version bumped to 2.1.6
2010-11-05 10:57:53 +01:00
56fce7ce7d
Merge remote branch 'pietern/benchmark'
2010-11-05 10:29:59 +01:00
feecb608ed
Use multi-bulk protocol in SET benchmark
2010-11-05 10:22:52 +01:00
4ebfc45528
config option to select if when replication link with master a slave should or not serve stale data
2010-11-04 19:59:21 +01:00
12ebe2ac17
replication asynchronous SYNC information in INFO output
2010-11-04 18:50:23 +01:00
f6433915fe
more replication info in logs
2010-11-04 18:14:20 +01:00
26b3366993
non blocking slave replication is now more non blocking than the first implementation...
2010-11-04 18:09:35 +01:00
62ec599c36
typos and minor stuff fixed in the new non blocking replication code
2010-11-04 17:35:03 +01:00