Versions in this module Expand all Collapse all v1 v1.0.2 Nov 25, 2023 v1.0.1 Nov 20, 2023 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 + func AdapterWithStorageCapacity(cap int) AdapterOptions + type Algorithm string + const LFU + const LRU + const MFU + const MRU