Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitPrebidCache ¶
func InitPrebidCache(baseurl string)
InitPrebidCache setup the global prebid cache
Types ¶
type CacheObject ¶
type Cacheable ¶
type Cacheable struct { Type PayloadType Data json.RawMessage TTLSeconds int64 Key string }
type Client ¶
type Client interface { // PutJson stores JSON values for the given openrtb.Bids in the cache. Null values will be // // The returned string slice will always have the same number of elements as the values argument. If a // value could not be saved, the element will be an empty string. Implementations are responsible for // logging any relevant errors to the app logs PutJson(ctx context.Context, values []Cacheable) ([]string, []error) }
Client stores values in Prebid Cache. For more info, see https://github.com/prebid/prebid-cache
type PayloadType ¶
type PayloadType string
const ( TypeJSON PayloadType = "json" TypeXML PayloadType = "xml" )
Click to show internal directories.
Click to hide internal directories.