Versions in this module Expand all Collapse all v0 v0.18.0 Jan 31, 2024 Changes in this version + type HInt int + func (h HInt) Hash() string + type HString string + func (h HString) Hash() string + type Hasher interface + Hash func() string + type MemoCache struct + func NewMemoCache[H Hasher, T any](capacity int) *MemoCache[H, T] + func (m *MemoCache[H, T]) Capacity() int + func (m *MemoCache[H, T]) Get(h H) (T, bool) + func (m *MemoCache[H, T]) Set(h H, value T) + func (m *MemoCache[H, T]) Size() int