Documentation
¶
Overview ¶
Package processcache provides dependency-light process-local cache semantics.
Index ¶
- type Cache
- func (c *Cache) Close()
- func (c *Cache) Delete(key string) bool
- func (c *Cache) Exists(key string) bool
- func (c *Cache) Flush()
- func (c *Cache) Get(key string) (any, bool)
- func (c *Cache) Keys() []string
- func (c *Cache) PopAll(key string) []any
- func (c *Cache) Push(key string, value any) int
- func (c *Cache) Set(key string, value any, ttl time.Duration)
- func (c *Cache) Size() int
- func (c *Cache) Update(key string, updater func(any) any) any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a goroutine-safe, process-local cache with TTL and list batching semantics.
Click to show internal directories.
Click to hide internal directories.