Documentation ¶
Overview ¶
Package cache allows third parties to implement external storage for caching token data for distributed systems or multiple local applications access.
The data stored and extracted will represent the entire cache. Therefore it is recommended one msal instance per user. This data is considered opaque and there are no guarantees to implementers on the format being passed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExportReplace ¶
type ExportReplace interface { // Replace replaces the cache with what is in external storage. // key is the suggested key which can be used for partioning the cache Replace(cache Unmarshaler, key string) // Export writes the binary representation of the cache (cache.Marshal()) to // external storage. This is considered opaque. // key is the suggested key which can be used for partioning the cache Export(cache Marshaler, key string) }
ExportReplace is used export or replace what is in the cache.
type Serializer ¶
type Serializer interface { Marshaler Unmarshaler }
Serializer can serialize the cache to binary or from binary into the cache.
type Unmarshaler ¶
Unmarshaler unmarshals data from a storage medium into the internal cache, overwriting it.
Click to show internal directories.
Click to hide internal directories.