userver: redis::TtlReply Class Reference
Loading...
Searching...
No Matches
redis::TtlReply Class Referencefinal

Detailed Description

Definition at line 13 of file ttl_reply.hpp.

Public Types

enum class  TtlReplyValue {
  kKeyDoesNotExist = -2 ,
  kKeyHasNoExpiration = -1
}
 

Public Member Functions

 TtlReply (int64_t value)
 
 TtlReply (TtlReplyValue value)
 
bool KeyExists () const
 
bool KeyHasExpiration () const
 
size_t GetExpireSeconds () const
 

Static Public Member Functions

static TtlReply Parse (ReplyData &&reply_data, const std::string &request_description={})
 

Static Public Attributes

static constexpr TtlReplyValue kKeyDoesNotExist
 
static constexpr TtlReplyValue kKeyHasNoExpiration
 

Member Enumeration Documentation

◆ TtlReplyValue

enum class redis::TtlReply::TtlReplyValue
strong

Definition at line 15 of file ttl_reply.hpp.

Member Data Documentation

◆ kKeyDoesNotExist

constexpr TtlReplyValue redis::TtlReply::kKeyDoesNotExist
staticconstexpr
Initial value:
=
TtlReplyValue::kKeyDoesNotExist

Definition at line 17 of file ttl_reply.hpp.

◆ kKeyHasNoExpiration

constexpr TtlReplyValue redis::TtlReply::kKeyHasNoExpiration
staticconstexpr
Initial value:
=
TtlReplyValue::kKeyHasNoExpiration

Definition at line 19 of file ttl_reply.hpp.


The documentation for this class was generated from the following file: