userver: storages::redis::EvalShaResult< ReplyType > Class Template Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
storages::redis::EvalShaResult< ReplyType > Class Template Reference

#include <userver/storages/redis/request_evalsha.hpp>

Detailed Description

template<typename ReplyType>
class storages::redis::EvalShaResult< ReplyType >

Value, returned by storages::redis::RequestEvalSha.

Definition at line 51 of file request_evalsha.hpp.

Public Member Functions

bool IsNoScriptError () const noexcept
 
bool HasValue () const noexcept
 
const ReplyType & Get () const
 Retrieve the value or throw an exception if there's no value.
 
ReplyType Extract ()
 Retrieve the value or throws an exception if there's no value.
 

Member Function Documentation

◆ Extract()

template<typename ReplyType>
ReplyType storages::redis::EvalShaResult< ReplyType >::Extract ( )
inline

Retrieve the value or throws an exception if there's no value.

Definition at line 63 of file request_evalsha.hpp.

◆ Get()

template<typename ReplyType>
const ReplyType & storages::redis::EvalShaResult< ReplyType >::Get ( ) const
inline

Retrieve the value or throw an exception if there's no value.

Definition at line 60 of file request_evalsha.hpp.

◆ HasValue()

template<typename ReplyType>
bool storages::redis::EvalShaResult< ReplyType >::HasValue ( ) const
inlinenoexcept
Returns
true iff the script does exist on the Redis shard and returned value

Definition at line 57 of file request_evalsha.hpp.

◆ IsNoScriptError()

template<typename ReplyType>
bool storages::redis::EvalShaResult< ReplyType >::IsNoScriptError ( ) const
inlinenoexcept
Returns
true iff the script does not exist on the Redis shard

Definition at line 54 of file request_evalsha.hpp.

Friends And Related Symbol Documentation

◆ RequestEvalSha

template<typename ReplyType>
template<typename, typename>
friend class RequestEvalSha
friend

Definition at line 67 of file request_evalsha.hpp.


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