Versions in this module Expand all Collapse all v1 v1.2.0 Aug 26, 2023 Changes in this version + type Config struct + Collection string + ConnectionUrl string + Database string + func NewConfigWith(connectionUrl string, dbName string, collection string) Config + type Provider struct + func New(cfg Config) (*Provider, error) + func (p *Provider) Count() int + func (p *Provider) Destroy(id []byte) error + func (p *Provider) GC() error + func (p *Provider) Get(id []byte) ([]byte, error) + func (p *Provider) NeedGC() bool + func (p *Provider) Regenerate(id []byte, newID []byte, expiration time.Duration) error + func (p *Provider) Save(id []byte, data []byte, expiration time.Duration) error