cache

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataCache

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

func NewDataCache

func NewDataCache() *DataCache

func (*DataCache) Read

func (c *DataCache) Read(name string, data interface{}) bool

func (*DataCache) WithHandlers

func (c *DataCache) WithHandlers(handlers ...HandlerInterface) *DataCache

func (*DataCache) WithNamespace

func (c *DataCache) WithNamespace(namespace string) *DataCache

func (*DataCache) Write

func (c *DataCache) Write(name string, data interface{}) error

type HandlerInterface

type HandlerInterface interface {
	Type() string
	Read(string, interface{}) bool
	Write(string, interface{}) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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