Poco::Redis

template < typename T >

class Type

File Information

Library: Redis
Package: Redis
Header: Poco/Redis/Type.h

Description

Template class for all Redis types. This class will use RedisTypeTraits structure for calling the type specific code.

Inheritance

Direct Base Classes: RedisType

All Base Classes: RedisType

Member Summary

Member Functions: read, toString, type, value

Inherited Functions: createRedisType, isArray, isBulkString, isError, isInteger, isSimpleString, read, toString, type

Constructors

Type inline

Type();

Creates the Type.

Type inline

Type(
    const T & t
);

Creates the Type from another one.

Type inline

Type(
    const Type & copy
);

Creates the Type by copying another one.

Destructor

~Type virtual inline

virtual ~Type();

Destroys the Type.

Member Functions

read virtual inline

void read(
    RedisInputStream & socket
);

Reads the value from the stream (RESP).

toString virtual inline

std::string toString() const;

Converts the value to a string based on the RESP protocol.

type virtual inline

int type() const;

Returns the type of the value

value inline

T & value();

Returns the value

value inline

const T & value() const;

Returns a const value