Datastore
Memory
Defines an in-process store of tiles held in the memory of the tilegroxy daemon itself. Unlike the other datastores this is not a connection to anything external, it is the storage itself. Utilizes otter under the hood.
| Only used by the memory cache. |
| This is not recommended for production use. The same caveats as the memory cache apply. |
Example
-
YAML
-
JSON
datastores:
- name: memory
id: tiles
maxsize: 1000
ttl: 1000
{
"datastores": [
{
"name": "memory",
"id": "tiles",
"maxsize": 1000,
"ttl": 1000
}
]
}
Configuration
| Parameter | Description | Type | Required | Default |
|---|---|---|---|---|
|
The unique identifier of the datastore used to reference this datastore elsewhere in configuration |
string |
Yes |
None |
|
Maximum number of tiles to hold. 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 entries in seconds |
uint32 |
No |
3600 |