New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

koop-pgcache

Package Overview
Dependencies
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koop-pgcache

A PostGIS data cache for Koop.

latest
Source
npmnpm
Version
1.7.2
Version published
Weekly downloads
32
3.23%
Maintainers
3
Weekly downloads
 
Created
Source

koop-pgcache

npm travis

A PostGIS data cache for Koop.

Koop's data caching is by default a local, in-memory object. koop-pgcache allows you to use PostGIS to cache data retrieved from requests more efficiently and minimize round trips and rate limiting from third party data providers.

Install

npm install koop-pgcache

Usage

To use a PostGIS cache, you need to have a PostgreSQL database with PostGIS enabled.

Detailed installation guides for PostgreSQL are available here.

Instructions for enabling PostGIS on an existing PostgreSQL database are available here.

Once you have a PostGIS database for Koop to use as a cache, add the postgres address of the database to your Koop configuration and register the PostGIS cache like so:

var config = {
  'db': {
    'conn': 'postgres://localhost/koopdev'
  }
}

var koop = require('koop')(config)
var koopPg = require('koop-pgcache')

koop.registerCache(koopPg)

If everything was configured correctly, Koop should now be using your PostGIS database to cache data from providers.

Documentation

  • koop-pgcache docs

Resources

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.

License

Apache 2.0

Keywords

cache

FAQs

Package last updated on 27 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts