API reference
GD.database.redis
Entry for creating Redis clients and connection pools.
Methods
client
client() -> GDRedisClientCreate 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) -> GDRedisPoolCreate a key-value connection pool.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
size | int | 0 | Number 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.