Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bloomfilter ¶
type Bloomfilter struct {
// contains filtered or unexported fields
}
func NewBloomFilter ¶
func NewBloomFilter(limit int) *Bloomfilter
func (*Bloomfilter) Add ¶
func (this *Bloomfilter) Add(key []byte)
func (*Bloomfilter) Contains ¶
func (this *Bloomfilter) Contains(key []byte) bool
type LruCache ¶
type LruCache[T any] struct { // contains filtered or unexported fields }
func NewLruCache ¶
func (*LruCache[T]) Remove ¶
Remove deletes an entry from the cache. It uses Lock for exclusive writes.
func (*LruCache[T]) RemoveMulti ¶
RemoveMulti deletes multiple entries from the cache. It uses Lock for exclusive writes.
Click to show internal directories.
Click to hide internal directories.