feat: add fieldttl command that returns the ttl of the member (#2026)

Currently implemented only for saddex.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2023-10-16 12:12:00 +03:00 committed by GitHub
parent 6c1e9fcefc
commit c6946d561c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 110 additions and 50 deletions

View file

@ -57,6 +57,7 @@ void DenseSet::IteratorBase::Advance() {
++curr_list_;
if (curr_list_ == owner_->entries_.end()) {
curr_entry_ = nullptr;
owner_ = nullptr;
return;
}
owner_->ExpireIfNeeded(nullptr, &(*curr_list_));