Categorygithub.com/FloatTech/ttl
modulepackage
0.0.0-20240716161252-965925764562
Repository: https://github.com/floattech/ttl.git
Documentation: pkg.go.dev

# README

ttl

The independent repo of ZeroBot/extension/ttl

# Functions

NewCache 创建指定生命周期的 Cache.
NewCacheOn 创建指定生命周期的 Cache on: [onset, onget, ondel, ontouch].

# Structs

Cache is a synchronised map of items that auto-expire once stale.
Item represents a record in the cache map.