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

Detailed Description

A Bulk String:

Definition at line 78 of file RedisInternal.h.

Public Member Functions

 RedisBulkString (Client &c)
 RedisBulkString (String &s)
 ~RedisBulkString () override
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< RedisObjectparseTypeNonBlocking (Client &)
static std::shared_ptr< RedisObjectparseType (Client &)
- Protected Attributes inherited from RedisObject
String data
Type _type = Type::NoType

#include <RedisInternal.h>

Inheritance diagram for RedisBulkString:
Inheritance graph

Constructor & Destructor Documentation

◆ RedisBulkString() [1/2]

RedisBulkString::RedisBulkString ( Client &  c)

Definition at line 81 of file RedisInternal.h.

◆ RedisBulkString() [2/2]

RedisBulkString::RedisBulkString ( String &  s)

Definition at line 82 of file RedisInternal.h.

◆ ~RedisBulkString()

RedisBulkString::~RedisBulkString ( )

Definition at line 83 of file RedisInternal.h.

Member Function Documentation

◆ init()

void RedisBulkString::init ( Client &  client)

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 22 of file RedisInternal.cpp.

◆ RESP()

String RedisBulkString::RESP ( )

Produce the Redis serialization protocol (RESP) representation. Must be overridden.

Implements RedisObject.

Definition at line 47 of file RedisInternal.cpp.