December 2, 2020 update:
  • The Poly website (poly.google.com) and Poly API will be shut down on June 30, 2021. Uploading of new assets will be disabled two months earlier, on April 30, 2021.
  • Previously uploaded assets will remain available and can be downloaded from poly.google.com until June 30, 2021.

PolyToolkit.PolyCacheConfig

Indicates how to configure the Poly Toolkit cache.

Summary

Constructors and Destructors

PolyCacheConfig(bool cacheEnabled, int maxCacheSizeMb, int maxCacheEntries)

Public attributes

cacheEnabled
bool
Whether or not to use caching for web requests (this is recommended).
cachePathOverride
string
If not null, this is the path that will be used to store the cache.
maxCacheEntries
int
Maximum number of cache entries.
maxCacheSizeMb
int
Maximum cache size, in megabytes.

Public functions

ToString()
override string

Public attributes

cacheEnabled

bool PolyToolkit::PolyCacheConfig::cacheEnabled

Whether or not to use caching for web requests (this is recommended).

cachePathOverride

string PolyToolkit::PolyCacheConfig::cachePathOverride

If not null, this is the path that will be used to store the cache.

If null, the default path will be used.

maxCacheEntries

int PolyToolkit::PolyCacheConfig::maxCacheEntries

Maximum number of cache entries.

maxCacheSizeMb

int PolyToolkit::PolyCacheConfig::maxCacheSizeMb

Maximum cache size, in megabytes.

Public functions

PolyCacheConfig

 PolyToolkit::PolyCacheConfig::PolyCacheConfig(
  bool cacheEnabled,
  int maxCacheSizeMb,
  int maxCacheEntries
)

ToString

override string PolyToolkit::PolyCacheConfig::ToString()