]> git.saurik.com Git - redis.git/blobdiff - src/redis.h
DB API refactoring. The changes were designed together with Pieter Noordhuis.
[redis.git] / src / redis.h
index 3b5cb0230bf1976aae58793cb88080e8becd39a4..27131e5d9d5d65291c396389a4251cd0e0502a6a 100644 (file)
@@ -1058,8 +1058,9 @@ robj *lookupKeyRead(redisDb *db, robj *key);
 robj *lookupKeyWrite(redisDb *db, robj *key);
 robj *lookupKeyReadOrReply(redisClient *c, robj *key, robj *reply);
 robj *lookupKeyWriteOrReply(redisClient *c, robj *key, robj *reply);
-int dbAdd(redisDb *db, robj *key, robj *val);
-int dbReplace(redisDb *db, robj *key, robj *val);
+void dbAdd(redisDb *db, robj *key, robj *val);
+void dbOverwrite(redisDb *db, robj *key, robj *val);
+void setKey(redisDb *db, robj *key, robj *val);
 int dbExists(redisDb *db, robj *key);
 robj *dbRandomKey(redisDb *db);
 int dbDelete(redisDb *db, robj *key);