cache

package module
v0.0.0-...-45b9a77 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 6 Imported by: 0

README

cache

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisCache

func NewRedisCache(client *redis.Client) *redisCache

Types

type Cache

type Cache interface {
	Hash(data interface{}) string
	Set(key string, data interface{}, ttl time.Duration) error
	Get(key string, target interface{}) error
	GetKeys(keyPattern string) ([]string, error)
	Delete(keys ...string) error
}

Cache defines an arbitrary cache implementation

Jump to

Keyboard shortcuts

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