Documentation ¶
Overview ¶
Package configcatcache holds utility functions for the SDK's caching.
Index ¶
Constants ¶
View Source
const ConfigJSONCacheVersion = "v2"
View Source
const ConfigJSONName = "config_v5.json"
Variables ¶
This section is empty.
Functions ¶
func CacheSegmentsFromBytes ¶
func CacheSegmentsFromBytes(cacheBytes []byte) (fetchTime time.Time, eTag string, config []byte, err error)
CacheSegmentsFromBytes deserializes a cache entry from a specific format used by the SDK.
func CacheSegmentsToBytes ¶
CacheSegmentsToBytes serializes the input parameters to a specific format used for caching by the SDK.
func ProduceCacheKey ¶
ProduceCacheKey constructs a cache key from an SDK key used to identify a cache entry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.