cache

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheDriver

type CacheDriver interface {
	Name() string
	Init(config interface{}) error
	Set(key string, value interface{}, expiration time.Duration) error
	Get(key string) (interface{}, error)
	Has(key string) (bool, error)
	Delete(key string) error
}

type CacheManager

type CacheManager struct {
	// contains filtered or unexported fields
}

func NewCacheManager

func NewCacheManager(drivers ...CacheDriver) *CacheManager

func (*CacheManager) CreateCacheFactory

func (dm *CacheManager) CreateCacheFactory(driverName string, config interface{}) (CacheDriver, error)

func (*CacheManager) RegisterDrivers

func (dm *CacheManager) RegisterDrivers(drivers ...CacheDriver)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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