Skip to main content
Deno 2 is finally here 🎉️
Learn more

geocache

In-memory cache for storing bucketed geolocation data for Deno.

Use Case

  • Data can be stored in the cache and fetched from the cache a given longitude and latitude.
  • Coordinates are grouped into buckets, and data is cached per bucket. Each bucket represents a block in the graticule.
  • The size of the block is determined by the interval in decimal degrees. A lower interval means more accurate geolocation data, but also increases the maximum cache size.
  • The underlying cache is a TTL cache (more policies are planned).