Struct rustis::commands::TsGetOptions
source · pub struct TsGetOptions { /* private fields */ }
Available on crate feature
redis-time-series
only.Expand description
Options for the ts_get
command.
Implementations§
source§impl TsGetOptions
impl TsGetOptions
sourcepub fn latest(self) -> Self
pub fn latest(self) -> Self
Used when a time series is a compaction.
With latest
, ts_get
also reports the compacted value of the latest possibly partial bucket,
given that this bucket’s start time falls within [from_timestamp
, to_timestamp
].
Without latest
, ts_get
does not report the latest possibly partial bucket.
When a time series is not a compaction, latest
is ignored.
The data in the latest bucket of a compaction is possibly partial.
A bucket is closed and compacted only upon arrival of a new sample that opens a new latest bucket.
There are cases, however, when the compacted value of the latest possibly partial bucket is also required.
In such a case, use latest
.
Trait Implementations§
source§impl Default for TsGetOptions
impl Default for TsGetOptions
source§fn default() -> TsGetOptions
fn default() -> TsGetOptions
Returns the “default value” for a type. Read more