Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapCache ¶
type MapCache[T any] struct { // contains filtered or unexported fields }
func NewMapCache ¶
type SliceCache ¶
type SliceCache[T any] struct { // contains filtered or unexported fields }
func NewSliceCache ¶
func NewSliceCache[T any](capacity int) *SliceCache[T]
func (*SliceCache[T]) Get ¶
func (c *SliceCache[T]) Get(key string) (T, bool)
func (*SliceCache[T]) Set ¶
func (c *SliceCache[T]) Set(key string, value T)
Click to show internal directories.
Click to hide internal directories.