jjz921024 commented on PR #2402: URL: https://github.com/apache/kvrocks/pull/2402#issuecomment-2253916707
Motivation: 1. In `hlen` command, count the number of fields at hash expiration enable, replace the previous method to avoid loading all of fields into memory. 2. For most `Generic` commands (eg: ttl, type, copy, expire, scan...). If the type is hash, we still need to check each fields. If all of fields was expired, the GetMetadata should return not found. 3. In `del` command, if delete a hash object that all of fields expired, so this hash object should be treated as empty and should not affect the deleted_cnt. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
