Documentation ¶
Overview ¶
=============================================================== * Copyright (C) 2020 All rights reserved. * * FileName:xredis.go * Author:WuGuoFu * Date: 2020-03-19 * Description: * ================================================================
Index ¶
- func AddRedis(key, addr string, options redis.Options)
- func GetClient(key string) *redis.Client
- func NewShardingXesRedis(ctx context.Context, cluster string) *core.XesRedis
- func NewSimpleXesRedis(ctx context.Context, instance string) *core.XesRedis
- func NewXesRedis() *core.XesRedis
- func NewXesRedisOfCtx(ctx context.Context) *core.XesRedis
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewShardingXesRedis ¶
NewShardingXesRedis returns a client to the Redis Server specified by cluster Name.
func NewSimpleXesRedis ¶
NewSimpleXesRedis returns a client to the Redis Server specified by instance.
func NewXesRedis ¶
NewXesRedis returns a client to the Redis Server specified by default options.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.