Versions in this module Expand all Collapse all v2 v2.4.0 Jul 3, 2023 Changes in this version type Config + Context context.Context v2.3.0 Feb 10, 2022 v2.2.0 Mar 4, 2021 Changes in this version + type Bicache struct + ShardCount uint32 + Size int + func New(c *Config) (*Bicache, error) + func (b *Bicache) Close() + func (b *Bicache) Del(k string) + func (b *Bicache) FlushAll() error + func (b *Bicache) FlushMFU() error + func (b *Bicache) FlushMRU() error + func (b *Bicache) Get(k string) interface{} + func (b *Bicache) List(n int) ListResults + func (b *Bicache) Pause() error + func (b *Bicache) Resume() error + func (b *Bicache) Set(k string, v interface{}) bool + func (b *Bicache) SetTTL(k string, v interface{}, t int32) bool + func (b *Bicache) Stats() *Stats + type Config struct + AutoEvict uint + EvictLog bool + MFUSize uint + MRUSize uint + NoOverflow bool + ShardCount int + type KeyInfo struct + Key string + Score uint64 + State uint8 + type ListResults []*KeyInfo + func (lr ListResults) Len() int + func (lr ListResults) Less(i, j int) bool + func (lr ListResults) Swap(i, j int) + type Shard struct + type Stats struct + Evictions uint64 + Hits uint64 + MFUMaxSize uint + MFUSize uint + MFUUsedP uint + MRUMaxSize uint + MRUSize uint + MRUUsedP uint + Misses uint64 + Overflows uint64 Other modules containing this package github.com/jamiealquiza/bicache