cache

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(key string, impl ICache)

Types

type Configure

type Configure struct {
	Instance string `yaml:"instance"`
}

func (*Configure) Prefix

func (c *Configure) Prefix() string

type ICache

type ICache interface {
	bean.Bean
	Conn() (ICache, error)
	Set(key string, value interface{}) (string, error)
	Del(key string) (int64, error)
	Get(key string) (string, error)
}

func GetCacheImplByName

func GetCacheImplByName(key string) ICache

type Starter

type Starter struct {
	bean.Component
	Cache *Configure `configure:"auto"`
}

func (*Starter) AfterPropertiesSet

func (r *Starter) AfterPropertiesSet()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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