Versions in this module Expand all Collapse all v1 v1.1.1 Jan 31, 2024 Changes in this version + func NewAdapter(opts ...AdapterOptions) (cache.Adapter, error) + type Adapter struct + func (a *Adapter) Get(key uint64) ([]byte, bool) + func (a *Adapter) Release(key uint64) + func (a *Adapter) Set(key uint64, response []byte, expiration time.Time) + type AdapterOptions func(a *Adapter) error + func AdapterWithAlgorithm(alg Algorithm) AdapterOptions + func AdapterWithCapacity(cap int) AdapterOptions + type Algorithm string + const LFU + const LRU + const MFU + const MRU v1.1.1-rc.1 Jan 31, 2024