#include <userver/storages/redis/command_options.hpp>
Options for HGETEX command — at most one TTL action per call.
Definition at line 264 of file command_options.hpp.
Public Types | |
| enum class | TtlAction : std::uint8_t { kKeep , kSetSeconds , kSetMilliseconds , kSetAtSeconds , kSetAtMilliseconds , kPersist } |
| What to do with the TTL of each fetched field. More... | |
Static Public Member Functions | |
| static HgetexOptions | Keep () |
| Do not touch the TTL of the read fields (no modifier on the wire). | |
| static HgetexOptions | Persist () |
| Remove TTL on all read fields (PERSIST modifier). | |
| static HgetexOptions | Expire (std::chrono::milliseconds ttl) |
| Set TTL to a relative duration. Posted on the wire as PX (ms-precision). | |
| static HgetexOptions | ExpireAt (std::chrono::system_clock::time_point deadline) |
| Set TTL to an absolute deadline. Posted on the wire as PXAT (ms-precision). | |
Public Attributes | |
| TtlAction | ttl_action {TtlAction::kKeep} |
| std::chrono::milliseconds | ttl {0} |
|
strong |
What to do with the TTL of each fetched field.
Definition at line 266 of file command_options.hpp.
| std::chrono::milliseconds storages::redis::HgetexOptions::ttl {0} |
Definition at line 282 of file command_options.hpp.
| TtlAction storages::redis::HgetexOptions::ttl_action {TtlAction::kKeep} |
Definition at line 281 of file command_options.hpp.