IDocumentStorageServicePolicies Interface
Policies describing attributes or characteristics of the driver's storage service, to direct how other components interact with the driver
WARNING: This API is provided as an alpha preview and may change without notice. Use at your own risk.
Signature
export interface IDocumentStorageServicePolicies
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
caching | Alpha |
optional , readonly |
LoaderCachingPolicy | Should the Loader implement any sort of pre-fetching or caching mechanism? |
maximumCacheDurationMs | Alpha |
optional , readonly |
FiveDaysMs |
IMPORTANT: This policy MUST be set to 5 days and PROPERLY ENFORCED for drivers that are used in applications where Garbage Collection is enabled. Otherwise data loss may occur. This policy pertains to requests for the latest snapshot from the service. If set, it means that the driver guarantees not to use a cached value that was fetched more than 5 days ago. If undefined, the driver makes no guarantees about the age of snapshots used for loading. |
Property Details
caching
Should the Loader implement any sort of pre-fetching or caching mechanism?
WARNING: This API is provided as an alpha preview and may change without notice. Use at your own risk.
Signature
readonly caching?: LoaderCachingPolicy;
Type: LoaderCachingPolicy
maximumCacheDurationMs
IMPORTANT: This policy MUST be set to 5 days and PROPERLY ENFORCED for drivers that are used in applications where Garbage Collection is enabled. Otherwise data loss may occur.
This policy pertains to requests for the latest snapshot from the service. If set, it means that the driver guarantees not to use a cached value that was fetched more than 5 days ago. If undefined, the driver makes no guarantees about the age of snapshots used for loading.
WARNING: This API is provided as an alpha preview and may change without notice. Use at your own risk.
Signature
readonly maximumCacheDurationMs?: FiveDaysMs;
Type: FiveDaysMs