cache

package
v0.0.0-...-f39fe76 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	GET(k string) (v interface{}, err error)
	PUT(k string, v interface{}) error
	DEL(k string) error
}

type GoCache

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

func NewGoCache

func NewGoCache(conf config.Config) *GoCache

func (*GoCache) DEL

func (c *GoCache) DEL(k string) error

func (*GoCache) GET

func (c *GoCache) GET(k string) (v interface{}, err error)

func (*GoCache) PUT

func (c *GoCache) PUT(k string, v interface{}) error

type Redis

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

func NewRedis

func NewRedis(conf config.Config) *Redis

func (*Redis) DEL

func (r *Redis) DEL(k string) error

func (*Redis) GET

func (r *Redis) GET(k string) (v interface{}, err error)

func (*Redis) PUT

func (r *Redis) PUT(k string, v interface{}) error

Jump to

Keyboard shortcuts

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