redis

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 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 struct {
	// contains filtered or unexported fields
}

Cache implement github.com/tsingsun/woocoo/cache/Cache

func NewBuiltIn

func NewBuiltIn() *Cache

func (*Cache) Apply

func (c *Cache) Apply(cfg *conf.Configuration)

Apply conf.configurable

func (*Cache) Del

func (c *Cache) Del(key string) error

func (*Cache) Get

func (c *Cache) Get(key string, v interface{}) error

func (*Cache) Has

func (c *Cache) Has(key string) bool

func (*Cache) IsNotFound

func (c *Cache) IsNotFound(err error) bool

func (*Cache) Set

func (c *Cache) Set(key string, v interface{}, ttl time.Duration) error

func (*Cache) Take

func (c *Cache) Take(v interface{}, key string, ttl time.Duration, query func() (interface{}, error)) error

Jump to

Keyboard shortcuts

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