userver: storages::redis::EvalShaResult< ReplyType > Class Template Reference
Loading...
Searching...
No Matches
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 53 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 65 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 62 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 59 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 56 of file request_evalsha.hpp.

Friends And Related Symbol Documentation

◆ RequestEvalSha

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

Definition at line 69 of file request_evalsha.hpp.


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