|
AdaptySDK 4.1.1
|
Whether a fetch may answer from the cache, and for how long. Pick one of the shared instances or build one with ReturnCacheDataIfNotExpiredElseLoad. More...
Public Member Functions | |
| override string | ToString () |
| A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it. | |
Static Public Member Functions | |
| static AdaptyPlacementFetchPolicy | ReturnCacheDataIfNotExpiredElseLoad (TimeSpan maxAge) |
| Use the cache while it is younger than maxAge , and ask the server once it is older. | |
Static Public Attributes | |
| static readonly AdaptyPlacementFetchPolicy | ReloadRevalidatingCacheData |
| Ask the server, and fall back to the cache when it cannot be reached. The default. | |
| static readonly AdaptyPlacementFetchPolicy | ReturnCacheDataElseLoad |
| Use the cache when there is anything in it, however old, and only ask the server otherwise. | |
| static readonly AdaptyPlacementFetchPolicy | Default = ReloadRevalidatingCacheData |
| The policy used when none is given — the same instance as ReloadRevalidatingCacheData. | |
Properties | |
| double? | MaxAgeInSeconds [get] |
| The contract carries the age in seconds, not as a duration literal. | |
Private Member Functions | |
| AdaptyPlacementFetchPolicy (string type, TimeSpan? maxAge) | |
Private Attributes | |
| readonly string | _Type |
| readonly? TimeSpan | _MaxAge |
Whether a fetch may answer from the cache, and for how long. Pick one of the shared instances or build one with ReturnCacheDataIfNotExpiredElseLoad.
|
private |
|
static |
Use the cache while it is younger than maxAge , and ask the server once it is older.
| override string AdaptySDK.AdaptyPlacementFetchPolicy.ToString | ( | ) |
A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.
|
private |
|
private |
|
static |
The policy used when none is given — the same instance as ReloadRevalidatingCacheData.
|
static |
Ask the server, and fall back to the cache when it cannot be reached. The default.
|
static |
Use the cache when there is anything in it, however old, and only ask the server otherwise.
|
getprivate |
The contract carries the age in seconds, not as a duration literal.