distributed

package
v0.0.0-...-b180f38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheConfig

type CacheConfig struct {
	Addresses    []string
	Password     string
	PoolSize     int
	MinIdleConns int
	MaxRetries   int
}

type RedisClusterCache

type RedisClusterCache struct {
	// contains filtered or unexported fields
}

func NewRedisClusterCache

func NewRedisClusterCache(config CacheConfig, tracer tracing.Tracer) (*RedisClusterCache, error)

func (*RedisClusterCache) Delete

func (c *RedisClusterCache) Delete(ctx context.Context, key string) error

func (*RedisClusterCache) Get

func (c *RedisClusterCache) Get(ctx context.Context, key string, value interface{}) error

func (*RedisClusterCache) Set

func (c *RedisClusterCache) Set(ctx context.Context, key string, value interface{}, ttl time.Duration) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL