v3

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisCache

func NewRedisCache(client redis.Client) cache.MultiGetDeleteCountCache

Types

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)
	GetUserCounts(keys []string) ([]float64, error)
}

func NewEventCountCache added in v0.2.0

func NewEventCountCache(c cache.MultiGetDeleteCountCache) EventCounterCache

type ExperimentsCache

type ExperimentsCache interface {
	Get(featureID string, featureVersion int32, environmentNamespace string) (*experimentproto.Experiments, error)
	Put(
		featureID string,
		featureVersion int32,
		experiments *experimentproto.Experiments,
		environmentNamespace string,
	) error
}

func NewExperimentsCache

func NewExperimentsCache(c cache.Cache) ExperimentsCache

type FeaturesCache

type FeaturesCache interface {
	Get(environmentNamespace string) (*featureproto.Features, error)
	Put(features *featureproto.Features, environmentNamespace string) error
}

func NewFeaturesCache

func NewFeaturesCache(c cache.MultiGetCache) FeaturesCache

type SegmentUsersCache

type SegmentUsersCache interface {
	Get(segmentID, environmentNamespace string) (*featureproto.SegmentUsers, error)
	GetAll(environmentNamespace string) ([]*featureproto.SegmentUsers, error)
	Put(segmentUsers *featureproto.SegmentUsers, environmentNamespace string) error
}

func NewSegmentUsersCache

func NewSegmentUsersCache(c cache.MultiGetCache) SegmentUsersCache

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL