cache

package
v0.0.0-...-771f04f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func Register

func Register(config *config.CacheConfig) *Cache

func (*Cache) Get

func (c *Cache) Get(key, defaultValue string) string

func (*Cache) NewCache

func (c *Cache) NewCache() *redis.Client

func (*Cache) Set

func (c *Cache) Set(key, value string) error

type ICache

type ICache interface {
	Get(key, defaultValue string) string
	Set(key, value string) error
}

Jump to

Keyboard shortcuts

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