Use existing reply functions where possible

This commit is contained in:
Pieter Noordhuis
2010-09-02 14:30:56 +02:00
parent cd76bb651d
commit b70d355521
7 changed files with 10 additions and 12 deletions

View File

@ -245,13 +245,11 @@ void keysCommand(redisClient *c) {
}
void dbsizeCommand(redisClient *c) {
addReplySds(c,
sdscatprintf(sdsempty(),":%lu\r\n",dictSize(c->db->dict)));
addReplyLongLong(c,dictSize(c->db->dict));
}
void lastsaveCommand(redisClient *c) {
addReplySds(c,
sdscatprintf(sdsempty(),":%lu\r\n",server.lastsave));
addReplyLongLong(c,server.lastsave);
}
void typeCommand(redisClient *c) {