tilegroxy Docs
This does not actually delete data from your cache, it merely turns a cache hit into a miss when the data is old. If your concern is legal compliance, disk usage, or cloud cost, you will still need an external solution.
TTL cache will not work properly if your data was cached using tilegroxy 0.10 or below. However, it will work fine with data that was cached without the TTL cache applied, so there’s no issue adding it later after running without it.

Example

  • YAML

  • JSON

cache:
  name: ttl
  ttl: 3600
  cache:
    name: disk
    path: "./disk_tile_cache"
{
  "cache": {
    "name": "ttl",
    "ttl": 3600,
    "cache": {
      "name": "disk",
      "path": "./disk_tile_cache"
    }
  }
}

Configuration

Parameter Description Type Required Default

ttl

Maximum time to live for cache entries in seconds

uint32

Yes

None

cache

The wrapped Cache configuration

Cache

Yes

None