cache

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 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 RedisCache

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

func NewRedisCache

func NewRedisCache(cli *redis.Client, expire ...int) *RedisCache

func (*RedisCache) GetCacheByKeyOrFunc

func (c *RedisCache) GetCacheByKeyOrFunc(ctx context.Context, key string, info interface{}, fn func() error) error

func (*RedisCache) SetExpire

func (c *RedisCache) SetExpire(expire int)

func (*RedisCache) SetExpireNull

func (c *RedisCache) SetExpireNull(expireNull int)

Jump to

Keyboard shortcuts

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