dragonflydb/dragonfly

refactor DbSlice::ExpireParams

Chiusa

#3634 aperta il 3 set 2024

 (13 commenti) (0 reazioni) (1 assegnatario)C++ (1177 fork)batch import
good first issue

Metriche repository

Star
 (30.465 stelle)
Metriche merge PR
 (Merge medio 2g 11h) (201 PR mergiate in 30 g)

Descrizione

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.

Guida contributor