Versions in this module Expand all Collapse all v1 v1.2.0 Aug 26, 2023 Changes in this version + type Provider struct + func NewProvider(cfg ProviderConfig) (*Provider, error) + func (p *Provider) Close() error + func (p *Provider) Count() int + func (p *Provider) Destroy(id []byte) error + func (p *Provider) Exec(query string, args ...interface{}) (int64, error) + func (p *Provider) GC() error + func (p *Provider) Get(id []byte) ([]byte, error) + func (p *Provider) NeedGC() bool + func (p *Provider) Regenerate(id, newID []byte, expiration time.Duration) error + func (p *Provider) Save(id, data []byte, expiration time.Duration) error + type ProviderConfig struct + ConnMaxLifetime time.Duration + DSN string + Driver string + MaxIdleConns int + MaxOpenConns int + SQLCount string + SQLDestroy string + SQLGC string + SQLGet string + SQLInsert string + SQLRegenerate string + SQLSave string