cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetPersistenceCacheImpl

func SetPersistenceCacheImpl(persistenceCacheI PersistenceCache)

func SetProcessCacheImpl

func SetProcessCacheImpl(processCacheI ProcessCache)

Types

type Bytes

type Bytes []byte

func (Bytes) ContentType

func (b Bytes) ContentType() string

func (Bytes) Register

func (b Bytes) Register() []reflect.Type

func (Bytes) Return

func (b Bytes) Return() io.Reader

type Cache

type Cache interface {
	ExpireTime_() time.Duration
}

type ImplCache

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

func NewCacheImpl

func NewCacheImpl(time time.Duration) *ImplCache

func (*ImplCache) ExpireTime_

func (c *ImplCache) ExpireTime_() time.Duration

type Key

type Key interface {
}

type PersistenceCache

type PersistenceCache interface {
	Set(key []byte, value []byte, ttl time.Duration)
	Get(key []byte) []byte
}

type ProcessCache

type ProcessCache interface {
	EncodeKey(m *def.MethodInfo, args []reflect.Value) []byte
	EncodeValue(s def.Serialize, v reflect.Value) []byte
}

Jump to

Keyboard shortcuts

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