cache

package
Version: v0.0.0-...-4e1abb7 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbProduction = 0
	DbTesting    = 2
)
View Source
const (
	AdapterREDIS = "redis"
	AdapterMEM   = "memory"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ICache

type ICache interface {
	Connect(adapter string, db int) error
	Close() error
	Store() gokv.Store
	C() *redis.Client
}

func New

func New() ICache

Jump to

Keyboard shortcuts

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