Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[K comparable, V any] struct { // contains filtered or unexported fields }
func (*Cache[K, V]) Invalidate ¶
func (c *Cache[K, V]) Invalidate(k K)
type Handler ¶
type Handler[K comparable, V any] interface { CommitHandler(K, V) InvalidateHandler(K, V) }
type Options ¶
type Options[K comparable, V any] struct { Handler[K, V] StopBehavior StopBehavior LogPrefix string LogDebug bool }
type StopBehavior ¶
type StopBehavior uint8
const ( NoOpOnStop StopBehavior = 0 CommitOnStop StopBehavior = 1 InvalidateOnStop StopBehavior = 2 )
Click to show internal directories.
Click to hide internal directories.