zvcacher

package
v0.0.0-...-b53a1a1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RPR_periodic_wakeup_secs_normal     = 60
	RPR_periodic_wakeup_secs_try_hard   = 30
	RPR_periodic_wakeup_secs_try_harder = 5
	MAX_reaped_per_iter                 = 1000
)

Variables

This section is empty.

Functions

func RegisterModule

func RegisterModule()

Types

type ZVCacherAPI

type ZVCacherAPI struct {
}

func GetZVCacher

func GetZVCacher() *ZVCacherAPI

func (*ZVCacherAPI) Put

func (c *ZVCacherAPI) Put(ins *zstypes.InsCacheInfo) error

func (*ZVCacherAPI) UpdateAndGet

func (c *ZVCacherAPI) UpdateAndGet(account string, wreq *ztypes.StWbIReq) (*zstypes.InsCacheInfo, error)

type ZVCacherModType

type ZVCacherModType struct{}
var ZVCacherModInst ZVCacherModType

func (*ZVCacherModType) Alive

func (mod *ZVCacherModType) Alive() bool

func (*ZVCacherModType) Fini

func (mod *ZVCacherModType) Fini() error

func (*ZVCacherModType) Init

func (mod *ZVCacherModType) Init() error

func (*ZVCacherModType) Name

func (mod *ZVCacherModType) Name() string

func (*ZVCacherModType) Start

func (mod *ZVCacherModType) Start() error

func (*ZVCacherModType) Stop

func (mod *ZVCacherModType) Stop() error

Jump to

Keyboard shortcuts

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