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

Detailed Description

A Bulk String: https://redis.io/topics/protocol#resp-bulk-strings

Definition at line 77 of file RedisInternal.h.

Public Member Functions

 RedisBulkString (Client &c)
 
 RedisBulkString (String &s)
 
virtual void init (Client &client) override
 
virtual String RESP () override
 
- Public Member Functions inherited from RedisObject
 RedisObject (Type tc)
 
 RedisObject (Type tc, Client &c)
 
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 RedisObject
String data
 
Type _type = Type::NoType
 

#include <RedisInternal.h>

Inheritance diagram for RedisBulkString:
Inheritance graph
[legend]

Member Function Documentation

◆ init()

void RedisBulkString::init ( Client &  client)
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 49 of file RedisInternal.cpp.

◆ RESP()

String RedisBulkString::RESP ( )
overridevirtual

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

Implements RedisObject.

Definition at line 74 of file RedisInternal.cpp.