Home

Awesome

Build Status

tilelive-memcached

node-tilejson wrapping source for tilelive.

var options = {
    mode: 'readthrough', // optional, cache mode either 'readthrough' or 'race'
    client: client, // optional, instantiated memcached client
    expires: 600    // optional, object expiration time in seconds
    ttl: 300        // optional, relay mode only, numbe of seconds before an object should be re-checked.
};
var TileJSON = require('@mapbox/tilelive-memcached')(options, require('tilejson'));

new TileJSON( ... )

Cache modes

Two modes for caching are available.