gdDocumentation0.8.0

API reference

GD.database.redis

Entry for creating Redis clients and connection pools.

Methods

client

client() -> GDRedisClient

Create a key-value client.

Parameters

No parameters.

Return value

GDRedisClient

Errors

This call has no Err return slot. Its return type and documented sentinel values determine how to inspect the result.

pool

pool(size: int = 0) -> GDRedisPool

Create a key-value connection pool.

Parameters

NameTypeDefaultDescription
sizeint0Number of physical connections in the pool.

Return value

GDRedisPool

Errors

This call has no Err return slot. Its return type and documented sentinel values determine how to inspect the result.