Skip to main content

Module cache

Module cache 

Source
Expand description

A cache of responses on disk, shared by every process on the machine, so that repeated calls do not reach Transitous. Stop searches keep for 15 minutes, connections, departures and trips for a minute, because their realtime data changes.

The cache is best effort: an entry that cannot be read or written is a miss.

Structs§

Cache

Functions§

ttl
How long the answers of an endpoint keep.