Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisCache ¶
func NewRedisCache(client redis.Client) cache.MultiGetDeleteCountCache
Types ¶
type AutoOpsRulesCache ¶ added in v0.4.0
type AutoOpsRulesCache interface { Get(environmentId string) (*aoproto.AutoOpsRules, error) Put(autoOps *aoproto.AutoOpsRules, environmentId string) error }
func NewAutoOpsRulesCache ¶ added in v0.4.0
func NewAutoOpsRulesCache(c cache.MultiGetCache) AutoOpsRulesCache
type EnvironmentAPIKeyCache ¶
type EnvironmentAPIKeyCache interface { Get(string) (*accountproto.EnvironmentAPIKey, error) Put(*accountproto.EnvironmentAPIKey) error }
func NewEnvironmentAPIKeyCache ¶
func NewEnvironmentAPIKeyCache(c cache.Cache) EnvironmentAPIKeyCache
type EventCounterCache ¶ added in v0.2.0
type EventCounterCache interface { GetEventCounts(keys []string) ([]float64, error) GetEventCountsV2(keys [][]string) ([]float64, error) GetUserCount(key string) (int64, error) GetUserCounts(keys []string) ([]float64, error) GetUserCountsV2(keys []string) ([]float64, error) MergeMultiKeys(dest string, keys []string, expiration time.Duration) error DeleteKey(key string) error UpdateUserCount(key, userID string) error }
func NewEventCountCache ¶ added in v0.2.0
func NewEventCountCache(c cache.MultiGetDeleteCountCache) EventCounterCache
type ExperimentsCache ¶
type ExperimentsCache interface { Get(environmentId string) (*exproto.Experiments, error) Put(experiments *exproto.Experiments, environmentId string) error }
func NewExperimentsCache ¶
func NewExperimentsCache(c cache.MultiGetCache) ExperimentsCache
type FeaturesCache ¶
type FeaturesCache interface { Get(environmentId string) (*featureproto.Features, error) Put(features *featureproto.Features, environmentId string) error }
func NewFeaturesCache ¶
func NewFeaturesCache(c cache.MultiGetCache) FeaturesCache
type InMemoryCache ¶ added in v0.4.0
type InMemoryCache struct {
// contains filtered or unexported fields
}
func NewInMemoryCache ¶ added in v0.4.0
func NewInMemoryCache(opts ...InMemoryCacheOption) *InMemoryCache
func (*InMemoryCache) Destroy ¶ added in v0.4.0
func (c *InMemoryCache) Destroy()
func (*InMemoryCache) Get ¶ added in v0.4.0
func (c *InMemoryCache) Get(key interface{}) (interface{}, error)
type InMemoryCacheOption ¶ added in v0.4.0
type InMemoryCacheOption func(*InMemoryCache)
func WithEvictionInterval ¶ added in v0.4.0
func WithEvictionInterval(evictionInterval time.Duration) InMemoryCacheOption
type SegmentUsersCache ¶
type SegmentUsersCache interface { Get(segmentID, environmentId string) (*featureproto.SegmentUsers, error) GetAll(environmentId string) ([]*featureproto.SegmentUsers, error) Put(segmentUsers *featureproto.SegmentUsers, environmentId string) error }
func NewSegmentUsersCache ¶
func NewSegmentUsersCache(c cache.MultiGetCache) SegmentUsersCache
Source Files ¶
Click to show internal directories.
Click to hide internal directories.