PoolApi

trait PoolApi extends ClientApi
trait ClientApi
trait Types
trait LowPrio
class Object
trait Matchable
class Any
trait RedisApi
object default.type

Type members

Classlikes

class FixedRedisPool(host: String, port: Int, size: Int)

A fixed-size connection pool.

A fixed-size connection pool.

Note: the pool is managed by a simple blocking queue. If this becomes a bottleneck, we should consider using a more concurrent-friendly datastructure. Possible areas of research include HikariCP's ConcurrentBag implementation.

class RedisPool(host: String, port: Int, initialSize: Int)

A growable connection pool.

A growable connection pool.

This pool starts with an initial number of connections, and can grow if demand exceeds supply.

Note: the pool does not shrink back to its initial size after demand spikes! TODO: periodically reclaim memory by removing excessive items from the pool

Inherited classlikes

trait Reader[A] extends SimpleVisitor[A]

Visitor that reads a user-facing type from only a bulk string.

Visitor that reads a user-facing type from only a bulk string.

Inherited from:
Types
class Redis(in: InputStream, out: OutputStream) extends Closeable
Inherited from:
ClientApi
object Redis
Inherited from:
ClientApi
object Writable
Inherited from:
Types
Inherited from:
Types

Inherited types

type FieldKey = String
Inherited from:
ClientApi
type Id = String
Inherited from:
ClientApi
type Key = String
Inherited from:
ClientApi
opaque type Writable

For all intents and purposes, a writable is as BulkString. However, we use a wrapper type defined in an API trait, so that users can define their own conversions.

For all intents and purposes, a writable is as BulkString. However, we use a wrapper type defined in an API trait, so that users can define their own conversions.

Inherited from:
Types

Givens

Inherited givens

given given_Reader_N[N](using num: Numeric[N]): Reader[N]
Inherited from:
LowPrio
Inherited from:
LowPrio

Extensions

Inherited extensions

extension (w: Writable)
Inherited from:
Types