mirror of
https://github.com/fluencelabs/redis
synced 2025-04-02 15:51:05 +00:00
Merge branch 'unstable' of github.com:/antirez/redis into unstable
This commit is contained in:
commit
0110e46f6e
2
src/db.c
2
src/db.c
@ -212,7 +212,7 @@ void dbOverwrite(redisDb *db, robj *key, robj *val) {
|
|||||||
* 2) clients WATCHing for the destination key notified.
|
* 2) clients WATCHing for the destination key notified.
|
||||||
* 3) The expire time of the key is reset (the key is made persistent).
|
* 3) The expire time of the key is reset (the key is made persistent).
|
||||||
*
|
*
|
||||||
* All the new keys in the database should be creted via this interface. */
|
* All the new keys in the database should be created via this interface. */
|
||||||
void setKey(redisDb *db, robj *key, robj *val) {
|
void setKey(redisDb *db, robj *key, robj *val) {
|
||||||
if (lookupKeyWrite(db,key) == NULL) {
|
if (lookupKeyWrite(db,key) == NULL) {
|
||||||
dbAdd(db,key,val);
|
dbAdd(db,key,val);
|
||||||
|
@ -695,7 +695,7 @@ sds sdscatfmt(sds s, char const *fmt, ...) {
|
|||||||
* s = sdstrim(s,"Aa. :");
|
* s = sdstrim(s,"Aa. :");
|
||||||
* printf("%s\n", s);
|
* printf("%s\n", s);
|
||||||
*
|
*
|
||||||
* Output will be just "Hello World".
|
* Output will be just "HelloWorld".
|
||||||
*/
|
*/
|
||||||
sds sdstrim(sds s, const char *cset) {
|
sds sdstrim(sds s, const char *cset) {
|
||||||
char *start, *end, *sp, *ep;
|
char *start, *end, *sp, *ep;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user