Documentation ¶
Index ¶
- func NewCacheProductStore(cloudInfoExpiration, cleanupInterval time.Duration, logger cloudinfo.Logger) cloudinfo.CloudInfoStore
- func NewCassandraProductStore(config cassandra.Config, logger cloudinfo.Logger) cloudinfo.CloudInfoStore
- func NewCloudInfoStore(conf Config, log cloudinfo.Logger) cloudinfo.CloudInfoStore
- func NewRedisProductStore(config redis.Config, log cloudinfo.Logger) cloudinfo.CloudInfoStore
- type Config
- type GoCacheConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCacheProductStore ¶
func NewCacheProductStore(cloudInfoExpiration, cleanupInterval time.Duration, logger cloudinfo.Logger) cloudinfo.CloudInfoStore
NewCacheProductStore creates a new store instance. the backing cache is initialized with the defaultExpiration and cleanupInterval
func NewCloudInfoStore ¶
func NewCloudInfoStore(conf Config, log cloudinfo.Logger) cloudinfo.CloudInfoStore
NewCloudInfoStore builds a new cloudinfo store based on the passed in configuration This method is in charge to create the appropriate store instance eventually to implement a fallback mechanism to the default store
func NewRedisProductStore ¶
Types ¶
type Config ¶
type Config struct { Redis redis.Config GoCache GoCacheConfig Cassandra cassandra.Config }
CloudInfoStore configuration
type GoCacheConfig ¶
type GoCacheConfig struct {
// contains filtered or unexported fields
}
GoCacheConfig configuration
Click to show internal directories.
Click to hide internal directories.