repository

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoCache added in v0.2.8

func NewGoCache() cache.ICache

func NewRedisCache

func NewRedisCache(ds datasource.RedisDataSource) cache.ICache

Types

type GoCache added in v0.2.8

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

func (*GoCache) Delete added in v0.2.8

func (g *GoCache) Delete(key cache.CacheKey) error

func (*GoCache) Get added in v0.2.8

func (g *GoCache) Get(key cache.CacheKey) (string, bool)

func (*GoCache) ImplName added in v0.2.8

func (g *GoCache) ImplName() scene.ImplName

func (*GoCache) Set added in v0.2.8

func (g *GoCache) Set(key cache.CacheKey, value string, expiration time.Duration) error

type RedisCache

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

func (*RedisCache) Delete

func (r *RedisCache) Delete(key cache.CacheKey) error

func (*RedisCache) Get

func (r *RedisCache) Get(key cache.CacheKey) (string, bool)

func (*RedisCache) ImplName added in v0.2.8

func (r *RedisCache) ImplName() scene.ImplName

func (*RedisCache) Set

func (r *RedisCache) Set(key cache.CacheKey, value string, expiration time.Duration) error

func (*RedisCache) Setup

func (r *RedisCache) Setup() error

func (*RedisCache) Status

func (r *RedisCache) Status() error

Jump to

Keyboard shortcuts

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