Versions in this module Expand all Collapse all v0 v0.1.0 Feb 21, 2021 Changes in this version + const DEFAULT_CAPACITY + const OPTIONS_DEFAULT_CAPACITY_NAME + const OPTIONS_DEFAULT_EXPIRES_NAME + var DEFAULT_EXPIRES = time.Minute * 40 + var ErrKeyExpired = errors.New(`cache has expired`) + var ErrKeyNotExists = errors.New(`key does not exist in the cache`) + type Cache interface + Close func() error + Delete func(key string) + Exists func(key string) bool + Expires func(key string, expires time.Duration) + Get func(key string) (interface{}, error) + Keys func() []string + Open func() error + Set func(key string, value interface{}, expires ...time.Duration) + Size func() int + func NewBuiltinCache(opts ...*options.Options) Cache