Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrKeyDoesNotContains = errors.New("")
)
Functions ¶
This section is empty.
Types ¶
type CachedMap ¶
type CachedMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewCachedMap ¶
func NewCachedMap[K comparable, V any]() CachedMap[K, V]
type ReplacingMap ¶
type ReplacingMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewReplacingMap ¶
func NewReplacingMap[K comparable, V any](size uint) ReplacingMap[K, V]
func (*ReplacingMap[K, V]) Add ¶
func (m *ReplacingMap[K, V]) Add(key K, value V)
func (*ReplacingMap[K, V]) Get ¶
func (m *ReplacingMap[K, V]) Get(key K) (value V, err error)
func (*ReplacingMap[K, V]) Has ¶
func (m *ReplacingMap[K, V]) Has(key K) bool
func (*ReplacingMap[K, V]) Remove ¶
func (m *ReplacingMap[K, V]) Remove(key K)
func (*ReplacingMap[K, V]) SetSize ¶
func (m *ReplacingMap[K, V]) SetSize(size uint)
func (*ReplacingMap[K, V]) Touch ¶
func (m *ReplacingMap[K, V]) Touch(key K)
Click to show internal directories.
Click to hide internal directories.