Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶ added in v0.6.0
type Cache interface {
// Copy return a copy version of the cache.
Copy() Cache
// All return the complete list of the flags.
All() map[string]flag.Flag
// Init allow to initialize the cache with a collection of flags.
Init(flags map[string]dto.DTO)
// contains filtered or unexported methods
}
Cache is the interface to represent a cache in the system.
type InMemoryCache ¶ added in v0.18.4
type InMemoryCache struct {
Flags map[string]flag.InternalFlag
Logger *fflog.FFLogger
}
func NewInMemoryCache ¶ added in v0.18.4
func NewInMemoryCache(logger *fflog.FFLogger) *InMemoryCache
func (*InMemoryCache) Copy ¶ added in v0.18.4
func (fc *InMemoryCache) Copy() Cache
Click to show internal directories.
Click to hide internal directories.