Arduino-Redis
A Redis library for Arduino.
|
An Array: https://redis.io/topics/protocol#resp-arrays
Definition at line 91 of file RedisInternal.h.
Public Member Functions | |
RedisArray () | |
RedisArray (Client &c) | |
~RedisArray () override | |
void | add (std::shared_ptr< RedisObject > param) |
operator std::vector< String > () const | |
operator std::vector< std::shared_ptr< RedisObject >> () 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 |
Protected Attributes | |
std::vector< std::shared_ptr< RedisObject > > | vec |
Protected Attributes inherited from RedisObject | |
String | data |
Type | _type = Type::NoType |
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< RedisObject > | parseTypeNonBlocking (Client &) |
static std::shared_ptr< RedisObject > | parseType (Client &) |
#include <RedisInternal.h>
|
inline |
Definition at line 94 of file RedisInternal.h.
|
inline |
Definition at line 95 of file RedisInternal.h.
|
inlineoverride |
Definition at line 96 of file RedisInternal.h.
|
inline |
Definition at line 98 of file RedisInternal.h.
|
overridevirtual |
Initialize a RedisObject instance from the bytestream represented by 'client'. Only does very basic (e.g. SimpleString-style) parsing of the object from the byte stream. Concrete subclasses are expected to override this to provide class-specific parsing & initialization logic.
Reimplemented from RedisObject.
Definition at line 58 of file RedisInternal.cpp.
RedisArray::operator std::vector< std::shared_ptr< RedisObject >> | ( | ) | const |
RedisArray::operator std::vector< String > | ( | ) | const |
If this is a nested array, will flatten all those within
Definition at line 69 of file RedisInternal.cpp.
|
overridevirtual |
Produce the Redis serialization protocol (RESP) representation. Must be overridden.
Implements RedisObject.
Definition at line 89 of file RedisInternal.cpp.
|
protected |
Definition at line 110 of file RedisInternal.h.