update comments

This commit is contained in:
finley
2022-07-03 18:03:30 +08:00
parent 45edbdd7c7
commit 47ec67c4dc
3 changed files with 3 additions and 2 deletions

View File

@@ -294,7 +294,7 @@ func execKeys(db *DB, args [][]byte) redis.Reply {
func toTTLCmd(db *DB, key string) *protocol.MultiBulkReply {
raw, exists := db.ttlMap.Get(key)
if !exists {
// TTL
// has no TTL
return protocol.MakeMultiBulkReply(utils.ToCmdLine("PERSIST", key))
}
expireTime, _ := raw.(time.Time)