cache_factory

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: Apache-2.0 Imports: 2 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 DefaultCacheImpl

type DefaultCacheImpl struct {
}

func (*DefaultCacheImpl) GetString

func (r *DefaultCacheImpl) GetString(cache ICache, key string) (string, error)

type ICache

type ICache interface {
	bean.Bean
	Conn() (ICache, error)
	Save(key string, value interface{}) (interface{}, error)
	Del(key string) (interface{}, error)
	Get(key string) (interface{}, error)
	GetString(cache ICache, key string) (string, error)
}

func GetCacheImplByName

func GetCacheImplByName(key string) ICache

Jump to

Keyboard shortcuts

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