Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisCache ¶
func NewRedisCache(client redis.Client) cache.MultiGetDeleteCache
Types ¶
type EnvironmentAPIKeyCache ¶
type EnvironmentAPIKeyCache interface { Get(string) (*accountproto.EnvironmentAPIKey, error) Put(*accountproto.EnvironmentAPIKey) error }
func NewEnvironmentAPIKeyCache ¶
func NewEnvironmentAPIKeyCache(c cache.Cache) EnvironmentAPIKeyCache
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.