A Redis library for Arduino.
Public Member Functions | List of all members
RedisCommand Class Reference

Detailed Description

A Command (a specialized Array subclass):

Definition at line 154 of file RedisInternal.h.

Public Member Functions

 RedisCommand (String command)
 RedisCommand (String command, ArgList args)
 ~RedisCommand () override
std::shared_ptr< RedisObjectissue (Client &cmdClient)
template<typename T >
issue_typed (Client &cmdClient)
int issue_typed (Client &cmdClient)
bool issue_typed (Client &cmdClient)
String issue_typed (Client &cmdClient)
- Public Member Functions inherited from RedisArray
 RedisArray ()
 RedisArray (Client &c)
 ~RedisArray () override
void add (std::shared_ptr< RedisObject > param)
 operator std::vector< String > () const
virtual void init (Client &client) override
virtual String RESP () override
- Public Member Functions inherited from RedisObject
 RedisObject ()
 RedisObject (Type tc)
 RedisObject (Type tc, Client &c)
virtual ~RedisObject ()
virtual operator String ()
Type type () const

Additional Inherited Members

- Public Types inherited from RedisObject
enum  Type {
  NoType = '\0', SimpleString = '+', Error = '-', Integer = ':',
  BulkString = '$', Array = '*', InternalError = '!'
- Static Public Member Functions inherited from RedisObject
static std::shared_ptr< RedisObjectparseType (Client &)
- Protected Attributes inherited from RedisArray
std::vector< std::shared_ptr< RedisObject > > vec
- Protected Attributes inherited from RedisObject
String data
Type _type = Type::NoType

#include <RedisInternal.h>

Inheritance diagram for RedisCommand:
Inheritance graph

Constructor & Destructor Documentation

◆ RedisCommand() [1/2]

RedisCommand::RedisCommand ( String  command)

Definition at line 157 of file RedisInternal.h.

◆ RedisCommand() [2/2]

RedisCommand::RedisCommand ( String  command,
ArgList  args 

Definition at line 162 of file RedisInternal.h.

◆ ~RedisCommand()

RedisCommand::~RedisCommand ( )

Definition at line 171 of file RedisInternal.h.

Member Function Documentation

◆ issue()

std::shared_ptr< RedisObject > RedisCommand::issue ( Client &  cmdClient)

Issue the command on the bytestream represented by cmdClient.

cmdClientThe client object representing the bytestream connection to a Redis server.
A shared pointer of a "RedisObject" representing a concrete subclass instantiated as a result of parsing the Redis server return value. Check RedisObject::type() to determine concrete type.

Definition at line 83 of file RedisInternal.cpp.

◆ issue_typed() [1/4]

int RedisCommand::issue_typed ( Client &  cmdClient)

Definition at line 97 of file RedisInternal.cpp.

◆ issue_typed() [2/4]

bool RedisCommand::issue_typed ( Client &  cmdClient)

Definition at line 108 of file RedisInternal.cpp.

◆ issue_typed() [3/4]

String RedisCommand::issue_typed ( Client &  cmdClient)

Definition at line 117 of file RedisInternal.cpp.

◆ issue_typed() [4/4]

template<typename T >
T RedisCommand::issue_typed ( Client &  cmdClient)