configcatcache

package
v8.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 6 Imported by: 3

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

func CacheSegmentsToBytes(fetchTime time.Time, eTag string, config []byte) []byte

CacheSegmentsToBytes serializes the input parameters to a specific format used for caching by the SDK.

func ProduceCacheKey

func ProduceCacheKey(sdkKey string) string

ProduceCacheKey constructs a cache key from an SDK key used to identify a cache entry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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