antirez
f1367a37aa
Merge remote branch 'pietern/strrange'
2010-12-14 17:42:01 +01:00
Pieter Noordhuis
2bc467ba66
Add test cases for GETRANGE against integer-encoded strings
2010-12-14 15:35:35 +01:00
Pieter Noordhuis
c247d94dff
Refactor and rename SUBSTR to GETRANGE
...
SUBSTR is renamed to GETRANGE to have better consistency between command
names (with SETRANGE as its dual). GETRANGE is still aliased as SUBSTR.
2010-12-14 15:16:29 +01:00
Pieter Noordhuis
641289670c
Add SETRANGE command implementation and tests
2010-12-14 14:20:51 +01:00
antirez
a2a232690a
cow friendly HGETALL and variants
2010-12-14 12:10:51 +01:00
Pieter Noordhuis
fae765c340
Don't decode object on STRLEN when not necessary
2010-12-14 10:42:41 +01:00
antirez
5c73aba6c8
Linenoise updated to latest version
2010-12-10 19:22:13 +01:00
antirez
867babee79
previouse INCR implementation restored, was actually faster for some reson not fully clear at the moment
2010-12-10 19:15:00 +01:00
antirez
d6e04c2b24
Merge remote branch 'pietern/testverbosity'
2010-12-10 17:24:03 +01:00
antirez
8708423dfe
dont take the fast path for INCR if the resulting integer will fit into a shared integer range
2010-12-10 17:23:38 +01:00
antirez
5427631128
faster INCR doing far less allocation in common cases
2010-12-10 17:03:38 +01:00
Pieter Noordhuis
0dc602e3b5
Be less verbose in testing; improve error handling
2010-12-10 16:13:21 +01:00
antirez
a49886233b
fixed compilation on Linux
2010-12-10 15:47:01 +01:00
antirez
ff81d69775
command line option in test suite to activate valgrind mode
2010-12-10 15:40:48 +01:00
antirez
8db0de3f57
valgrind suppression file added
2010-12-10 15:36:04 +01:00
antirez
0978984100
HGET HMGET are now COW friendly, plus API refactoring and changes needed for the new implementation.
2010-12-10 15:17:55 +01:00
Pieter Noordhuis
cc8322919a
Change function name to match what it does
2010-12-10 12:16:16 +01:00
Pieter Noordhuis
cb33445bcd
Typo
2010-12-10 12:06:24 +01:00
Pieter Noordhuis
09586f8b7a
Add generic function to grow an sds value
...
Move logic concerned with setting a bit in an sds to the SETBIT command
instead of keeping it in sds.c. The function to grow an sds can and will
be reused for a command to set a range within a string value.
2010-12-10 11:58:21 +01:00
antirez
3cb849b6be
SINTER/MEMBERS are now COW friendly, also some refactoring around was needed to get this result.
2010-12-09 23:01:09 +01:00
Pieter Noordhuis
73dbf7c942
Enforce maximum string value length of 512MB
2010-12-09 17:16:10 +01:00
Pieter Noordhuis
c139b6812d
Add commands SETBIT/GETBIT
2010-12-09 16:39:33 +01:00
antirez
ca59ad7e86
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
antirez
fda6e59e9a
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
antirez
83fac5eeea
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
antirez
83696b5d4a
minor merge conflicts merging cli-help branch fixed
2010-11-30 11:39:55 +01:00
Pieter Noordhuis
ac62018b87
Minor update to linenoise
2010-11-29 20:53:57 +01:00
Pieter Noordhuis
a074c2c8ba
Refactor and support help for command names with spaces
2010-11-29 20:26:32 +01:00
Pieter Noordhuis
bbcfaf0114
Use linenoise completion API from redis-cli
2010-11-29 19:27:36 +01:00
Pieter Noordhuis
473ed93b3f
Update linenoise
2010-11-29 19:27:06 +01:00
antirez
1bb935b912
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
antirez
d50a6adcbf
new redis-cli command connect
2010-11-29 12:17:55 +01:00
antirez
a49210ddb3
gitignore now includes a few more files
2010-11-29 11:14:57 +01:00
Pieter Noordhuis
c99c78f359
Refactor help-related code into redis-cli.c
2010-11-28 21:37:19 +01:00
Pieter Noordhuis
a3b60c15da
Update help.h generator script to output man-style argument list
2010-11-28 17:45:58 +01:00
Pieter Noordhuis
a2fe52659a
Merge remote branch 'visionmedia/cli-help' into cli-help
2010-11-26 20:46:42 +01:00
Pieter Noordhuis
414a08a4f3
Don't hardcode make to "make"
2010-11-21 16:44:17 +01:00
Pieter Noordhuis
e127bd9c53
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
Pieter Noordhuis
47ddeec2dd
Wrapper around fwrite to make API consistent
2010-11-21 16:12:25 +01:00
Pieter Noordhuis
f73971ae53
Return number of bytes written from rdbSave* functions
2010-11-21 16:07:46 +01:00
Tj Holowaychuk
d268e36a27
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
antirez
f1d7eea704
added a few more files to gitignore
2010-11-15 15:50:41 +01:00
antirez
dea1672cf3
Fix for bug 374, thanks to Jeremy Zawodny for reporting and tracing why it was crashing.
2010-11-12 20:02:20 +01:00
antirez
eef979cb95
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
antirez
0c95631468
now redis-cli is able to show the Git SHA1 in the version output
2010-11-08 16:26:02 +01:00
antirez
e2759a75b5
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
antirez
c9d5275fe0
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
antirez
9cd35bb884
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
antirez
57335c3f21
fixed compilation with 32bit target
2010-11-08 12:53:36 +01:00
antirez
2ccb7c9f4f
non blocking loading of the DB / AOF with informations and ETA in INFO output
2010-11-08 11:52:03 +01:00