dragonflydb/dragonfly

refactor DbSlice::ExpireParams

クローズ

#3,634 opened on 2024/09/03

 (13 件のコメント) (0 件のリアクション) (1 人の担当者)C++ (1,177 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (30,465 個のスター)
PR merge metrics
 (平均マージ 2d 11h) (30d で 201 merged PRs)

説明

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.

コントリビューターガイド