Google.Maps.CacheOptions

Encapsulates map data caching parameters.

Summary

Public attributes

BasePath = ""
string
The base directory used for storing cache files. If this string value is empty, then BasePath defaults to Application.temporaryCachePath.
Directory = Path.Combine("Google.Maps", "SVT")
string
The directory under BasePath used for storing cache files.
DiskTimeoutSeconds = 0
int
Maximum time to wait to read from the disk cache. If a read takes longer than this, the disk cache is disabled.
MaxDiskBytes = 10 << 20
long
The maximum amount of space (in bytes) to allocate for cache files.

Public attributes

BasePath

string BasePath = ""

The base directory used for storing cache files. If this string value is empty, then BasePath defaults to Application.temporaryCachePath.

Directory

string Directory = Path.Combine("Google.Maps", "SVT")

The directory under BasePath used for storing cache files.

Note: Files in this directory can be deleted on cache cleanup. Do not put other files in this directory.

DiskTimeoutSeconds

int DiskTimeoutSeconds = 0

Maximum time to wait to read from the disk cache. If a read takes longer than this, the disk cache is disabled.

Set this value to 0 to wait indefinitely.

This is a workaround for a known bug that causes Musk to hang waiting for the disk cache. When behaving correctly, reading from the disk cache should be fast.

MaxDiskBytes

long MaxDiskBytes = 10 << 20

The maximum amount of space (in bytes) to allocate for cache files.

The total can exceed this value temporarily—in between cache cleanup passes. Set this value to to 0 to use an unlimited amount of space.

Note: If you are targeting WebGL (which is not officially supported), then set this value to 0.