Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
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 ¶
type InMemoryCache struct {
Flags map[string]flag.InternalFlag
Logger *fflog.FFLogger
}
func NewInMemoryCache ¶
func NewInMemoryCache(logger *fflog.FFLogger) *InMemoryCache
func (*InMemoryCache) Copy ¶
func (fc *InMemoryCache) Copy() Cache
Click to show internal directories.
Click to hide internal directories.