package
Version:
v1.18.6
Opens a new window with list of versions in this module.
Published: Jan 23, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
type FastCache struct {
Data []byte
}
type Map[K any, V any] struct {
}
Map 二次封装的泛型sync.Map
func (this *Map[K, V]) Get(k K) (V, bool)
func (this *Map[K, V]) Put(k K, v V)
type Pool[E any] struct {
}
Pool 二次封装的泛型sync.Pool
func (this *Pool[E]) Acquire() *E
Acquire 申请内存
func (this *Pool[E]) Release(obj *E)
Release 释放内存
Source Files
¶
Click to show internal directories.
Click to hide internal directories.