Documentation ¶
Overview ¶
Package scache Created by Teocci. Author: teocci@yandex.com on 2023-Aug-12
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheInstance ¶
type CacheInstance[T any] struct { // contains filtered or unexported fields }
func (*CacheInstance[T]) GetInstance ¶
func (ci *CacheInstance[T]) GetInstance() *SimpleCache[T]
type SimpleCache ¶
type SimpleCache[T any] struct { // contains filtered or unexported fields }
func GetCacheInstance ¶
func GetCacheInstance[T any](key string) *SimpleCache[T]
func (*SimpleCache[T]) Clear ¶
func (sc *SimpleCache[T]) Clear()
func (*SimpleCache[T]) Delete ¶
func (sc *SimpleCache[T]) Delete(key string)
func (*SimpleCache[T]) Get ¶
func (sc *SimpleCache[T]) Get(key string) (*T, bool)
func (*SimpleCache[T]) Has ¶
func (sc *SimpleCache[T]) Has(key string) bool
Click to show internal directories.
Click to hide internal directories.