1.7.2 • Published 6 years ago

koop-pgcache v1.7.2

Weekly downloads
7
License
Apache-2.0
Repository
github
Last release
6 years ago

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

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

1.7.2

6 years ago

1.7.1

6 years ago

1.7.0

8 years ago

1.6.6

8 years ago

1.6.5

8 years ago

1.6.4

8 years ago

1.6.3

8 years ago

1.6.2

8 years ago

1.6.1

8 years ago

1.6.0

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.3

8 years ago

1.4.2

8 years ago

1.4.1

8 years ago

1.4.0

9 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.5

9 years ago

0.1.6

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago