Arduino-Redis
A Redis library for Arduino.
|
An Array: https://redis.io/topics/protocol#resp-arrays
Definition at line 89 of file RedisInternal.h.
Public Member Functions | |
RedisArray (Client &c) | |
void | add (std::shared_ptr< RedisObject > param) |
operator std::vector< String > () const | |
virtual void | init (Client &client) override |
virtual String | RESP () override |
![]() | |
RedisObject (Type tc) | |
RedisObject (Type tc, Client &c) | |
virtual | operator String () |
Type | type () const |
Protected Attributes | |
std::vector< std::shared_ptr< RedisObject > > | vec |
![]() | |
String | data |
Type | _type = Type::NoType |
Additional Inherited Members | |
![]() | |
enum | Type { NoType = '\0', SimpleString = '+', Error = '-', Integer = ':', BulkString = '$', Array = '*', InternalError = '!' } |
![]() | |
static std::shared_ptr< RedisObject > | parseType (Client &) |
#include <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 55 of file RedisInternal.cpp.
|
overridevirtual |
Produce the Redis serialization protocol (RESP) representation. Must be overridden.
Implements RedisObject.
Definition at line 69 of file RedisInternal.cpp.