Documentation
¶
Index ¶
- func NewRedisClient(ctx context.Context, retryOpts helper.RetryOptions, d RedisClientDependencies, ...) (contract.RedisClient, error)
- type Blackbox
- type Client
- type ClientOption
- type ClientOptions
- type DefaultTool
- type Dependencies
- type Loaded
- type RedisClientDependencies
- type RedisClientOptions
- type Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisClient ¶
func NewRedisClient(ctx context.Context, retryOpts helper.RetryOptions, d RedisClientDependencies, opts RedisClientOptions) (contract.RedisClient, error)
Types ¶
type Client ¶
type Client interface {
Blackbox
contract.RedisOperator
}
func NewClient ¶
func NewClient(d Dependencies, opts ClientOptions) (Client, error)
func NewNoopClient ¶ added in v0.1.83
func NewNoopClient() Client
type ClientOption ¶
type ClientOption = contract.Opt[ClientOptions]
func WithBatchSize ¶
func WithBatchSize(x int) ClientOption
func WithClaimTTL ¶ added in v0.1.726
func WithClaimTTL(x time.Duration) ClientOption
func WithExpiresAfter ¶
func WithExpiresAfter(x time.Duration) ClientOption
type ClientOptions ¶
func ApplyClientOptions ¶
func ApplyClientOptions(opts *ClientOptions, modifiers ...ClientOption) ClientOptions
type DefaultTool ¶ added in v0.1.11
func NewTool ¶ added in v0.1.10
func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool
type Dependencies ¶ added in v0.1.8
type Dependencies struct {
C contract.RedisClient
}
type RedisClientDependencies ¶ added in v0.1.14
type RedisClientDependencies struct {
C contract.CertGenerator
F contract.FSysFileReader
}
type RedisClientOptions ¶
type Tool ¶ added in v0.1.245
type Tool interface {
contract.CloserWithCtx
}
Click to show internal directories.
Click to hide internal directories.