caches

package
v0.0.0-...-b9d6e19 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TmplsKey = "tmpls"
	KindsKey = "kinds"
)

Variables

This section is empty.

Functions

func CacheFactory

func CacheFactory() *cacheFactory

Types

type SpecCache

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

func (*SpecCache) Get

func (c *SpecCache) Get(key uint32) *model.SpaceSpec

func (*SpecCache) GetAll

func (c *SpecCache) GetAll() []*model.SpaceSpec

func (*SpecCache) LoadCache

func (c *SpecCache) LoadCache()

type TmplCache

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

TmplCache 加载mysql中的SpaceTemplate到内存中,数据量不大

func (*TmplCache) GetAllKinds

func (t *TmplCache) GetAllKinds() []*model.TmplKind

func (*TmplCache) GetAllTmpl

func (t *TmplCache) GetAllTmpl() []*model.SpaceTemplate

func (*TmplCache) GetTmpl

func (t *TmplCache) GetTmpl(key uint32) *model.SpaceTemplate

func (*TmplCache) LoadCache

func (t *TmplCache) LoadCache()

Jump to

Keyboard shortcuts

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