cache

package
v0.0.0-...-e1be92b Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DEFAULT_CACHE_DB = 0
	DEFULT_CAHCE_TTL = 3600
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisAdapter

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

func Default

func Default() *RedisAdapter

func NewRedisAdapter

func NewRedisAdapter(host string, port string, db int, password string, ttl time.Duration, prefix string) *RedisAdapter

func (*RedisAdapter) GetClient

func (adapter *RedisAdapter) GetClient() *redis.Client

func (*RedisAdapter) NewClient

func (adapter *RedisAdapter) NewClient() *redis.Client

func (*RedisAdapter) Ping

func (adapter *RedisAdapter) Ping() error

Jump to

Keyboard shortcuts

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