Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[T any] struct { // contains filtered or unexported fields }
Cache freecache实现
type MatchResultCache ¶
type MatchResultCache struct {
// contains filtered or unexported fields
}
MatchResultCache 专门用于MatchResult的缓存
func NewMatchResultCache ¶
func NewMatchResultCache(size int) *MatchResultCache
NewMatchResultCache 创建MatchResult缓存
func (*MatchResultCache) Get ¶
func (c *MatchResultCache) Get(key string) (*types.MatchResult, bool)
Get 获取匹配结果
func (*MatchResultCache) Put ¶
func (c *MatchResultCache) Put(key string, result *types.MatchResult)
Put 存储匹配结果
Click to show internal directories.
Click to hide internal directories.