74f6ee8dd5
Fixed return value of GETRANGE / SUBSTR
2011-03-04 16:23:18 +01:00
1408d147e4
limits.h is already included from redis.h
2010-12-23 13:02:22 +01:00
1443a814d0
overflow detection in INCR family functions
2010-12-19 12:23:35 +01:00
ad1b4f4f59
Use helper function for string object length
2010-12-15 11:49:04 +01:00
1333f98dd2
Use helper functions in APPEND
2010-12-15 11:40:36 +01:00
8f8eeffec1
Disable negative offsets for SETRANGE
2010-12-15 11:30:50 +01:00
30407e1f4f
Make SETBIT return original bit value
2010-12-15 00:42:32 +01:00
648e965460
removed a test that will never be true fixing the compilation on Linux
2010-12-14 17:46:20 +01:00
ef11bcccca
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
9f9e1ceaa0
Add SETRANGE command implementation and tests
2010-12-14 14:20:51 +01:00
7ecd4644e7
Don't decode object on STRLEN when not necessary
2010-12-14 10:42:41 +01:00
cc20906390
Change function name to match what it does
2010-12-10 12:16:16 +01:00
586500c0ef
Typo
2010-12-10 12:06:24 +01:00
eae33c1c81
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
076f88d657
Enforce maximum string value length of 512MB
2010-12-09 17:16:10 +01:00
3c1bf4957e
Add commands SETBIT/GETBIT
2010-12-09 16:39:33 +01:00
75b41de8ca
Convert objects in the command procs instead of the protocol code
2010-10-17 17:21:41 +02:00
3ab203762f
Use specialized function to add status and error replies
2010-09-02 23:33:06 +02:00
b70d355521
Use existing reply functions where possible
2010-09-02 19:52:04 +02:00
0537e7bf80
Use specialized function to add multi bulk reply length
2010-09-02 12:51:14 +02:00
bcf2995c98
support for write operations against expiring keys, by master-controlled expiring in replication and AOF synthesizing DEL operations
2010-08-02 18:13:39 +02:00
80091bbaac
STRLEN command implemented
2010-07-27 10:09:26 +02:00
5b4bff9c17
WATCH is now affected only when write commands actually modify the key content
2010-07-12 12:01:15 +02:00
e2641e09cc
redis.c split into many different C files.
...
networking related stuff moved into networking.c
moved more code
more work on layout of source code
SDS instantaneuos memory saving. By Pieter and Salvatore at VMware ;)
cleanly compiling again after the first split, now splitting it in more C files
moving more things around... work in progress
split replication code
splitting more
Sets split
Hash split
replication split
even more splitting
more splitting
minor change
2010-07-01 14:38:51 +02:00