Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ShardedClient ¶
type ShardedClient interface {
AddNode(ctx context.Context, address string) error
RemoveNode(ctx context.Context, address string)
GetShard(key string) (*redis.Client, error)
Nodes() []string
Close()
}
func NewShardedClient ¶
func NewShardedClient(ctx context.Context, shardAddresses []string) (ShardedClient, error)
NewClient creates a new ShardedClient with given shard addresses
Click to show internal directories.
Click to hide internal directories.