Versions in this module Expand all Collapse all v0 v0.1.1 Nov 6, 2024 Changes in this version + var DefaultValidKey = 1 + var ErrInvalidFunction = errors.New("invalid function") + var ErrNotFunction = errors.New("not function") + type ICProducer func(interface{}, ...interface{}) (interface{}, error) + func FormalizeChainedICProducer(f interface{}) ICProducer + func FormalizeICProducer(f interface{}) ICProducer + func TryFormalizeChainedICProducer(f interface{}) (ICProducer, error) + func TryFormalizeICProducer(f interface{}) (ICProducer, error) + type ICValidator func(interface{}) bool + func FormalizeICValidator(f interface{}) ICValidator + func TryFormalizeICValidator(f interface{}) (ICValidator, error) + type InlineCache struct + Producer ICProducer + Validator ICValidator + func (c *InlineCache) Invalidate() + func (c *InlineCache) Value(args ...interface{}) interface{} + func (c *InlineCache) ValueWithError(args ...interface{}) (cached interface{}, err error)