dragonflydb/dragonfly

refactor DbSlice::ExpireParams

Closed

#3,634 opened on Sep 3, 2024

 (13 comments) (0 reactions) (1 assignee)C++ (1,177 forks)batch import
good first issue

Repository metrics

Stars
 (30,465 stars)
PR merge metrics
 (Avg merge 2d 11h) (201 merged PRs in 30d)

Description

we have several fields in DbSlice::ExpireParams: int64_t value = INT64_MIN; // undefined TimeUnit unit = TimeUnit::SEC; bool absolute = false;

All these fields can be exchanged with one int64_t ms_timestamp, that will be created in the constructor or method.

Contributor guide