mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-14 22:56:36 +08:00
优化ttlcache相关代码
This commit is contained in:
6
internal/utils/ttlcache/item.go
Normal file
6
internal/utils/ttlcache/item.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package ttlcache
|
||||
|
||||
type Item[T any] struct {
|
||||
Value T
|
||||
expiresAt int64
|
||||
}
|
||||
Reference in New Issue
Block a user