intercache

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

README

内部缓存器

主要用来做内存缓存加速使用,比如留给物模型来展示实时值等。是一个K-V存储器,其本质是Map。只保存点位的ID和数值映射关系,因此需要处理好ID作为MAP的K不能冲突了。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterCache

type InterCache interface {
	RegisterSlot(Slot string)   // 存储槽位, 释放资源的时候调用
	UnRegisterSlot(Slot string) // 注销存储槽位, 释放资源的时候调用
	Size() uint64               // 存储器当前长度
	Flush()                     // 释放存储器空间
}

* * 内部缓存器 *

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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