Cache
Memory
A local in-memory cache. This stores the tiles in the memory of the tilegroxy daemon itself.
| This is not recommended for production use. It is meant for development and testing use-cases only. Setting this cache too high can cause stability issues for the service and this cache is not distributed so can cause inconsistent performance when deploying in a high-availability production environment. |
Example
-
YAML
-
JSON
cache:
name: memory
maxsize: 1000
ttl: 1000
{
"cache": {
"name": "memory",
"maxsize": 1000,
"ttl": 1000
}
}
Configuration
| Parameter | Description | Type | Required | Default |
|---|---|---|---|---|
|
Maximum number of tiles to hold in the cache. Must be at least 10. Setting this too high can cause out-of-memory panics. This is not a guaranteed setting, which entry is evicted when exceeding this size is an implementation detail and the size can temporarily grow somewhat larger. |
uint16 |
No |
100 |
|
Maximum time to live for cache entries in seconds |
uint32 |
No |
3600 |
|
The ID of a memory datastore to store tiles in instead of holding a private store. Use this when several memory caches need to hold the same tiles. Do not supply this at the same time as |
string |
No |
None |