Versions in this module Expand all Collapse all v0 v0.12.5 Mar 4, 2020 v0.12.4 Mar 3, 2020 v0.12.3 Feb 7, 2019 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.2 Dec 13, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.1 Dec 8, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.0 Dec 2, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work Changes in this version + var ErrEntryExists = errors.New("aah/cache: entry exists") + type Cache interface + Delete func(k string) error + Exists func(k string) bool + Flush func() error + Get func(k string) interface{} + GetOrPut func(k string, v interface{}, d time.Duration) (interface{}, error) + Name func() string + Put func(k string, v interface{}, d time.Duration) error + type Config struct + EvictionMode EvictionMode + Name string + ProviderName string + SweepInterval time.Duration + type EvictionMode uint8 + const EvictionModeNoTTL + const EvictionModeSlide + const EvictionModeTTL + type Manager struct + func NewManager() *Manager + func (m *Manager) AddProvider(name string, provider Provider) error + func (m *Manager) Cache(name string) Cache + func (m *Manager) CacheNames() []string + func (m *Manager) CreateCache(cfg *Config) error + func (m *Manager) InitProviders(appCfg *config.Config, logger log.Loggerer) error + func (m *Manager) Provider(name string) Provider + func (m *Manager) ProviderNames() []string + type Provider interface + Create func(cfg *Config) (Cache, error) + Init func(name string, appCfg *config.Config, logger log.Loggerer) error