Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { GetMemory(key string) (interface{}, bool) SetMemory(key string, value any, duration time.Duration) DelMemory(key string) CloseMemory() }
func NewMemoryCache ¶
func NewMemoryCache() Cache
NewMemoryCache New creates a new memory that asynchronously cleans expired entries after the given ttl passes.
Click to show internal directories.
Click to hide internal directories.