{"id":21558091,"url":"https://github.com/koopjs/koop-pgcache","last_synced_at":"2025-04-10T10:41:25.852Z","repository":{"id":27201456,"uuid":"30671972","full_name":"koopjs/koop-pgcache","owner":"koopjs","description":"PostGIS cache for Koop.","archived":false,"fork":false,"pushed_at":"2022-12-09T21:02:07.000Z","size":832,"stargazers_count":4,"open_issues_count":4,"forks_count":4,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-24T09:38:14.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koopjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-11T22:00:07.000Z","updated_at":"2020-01-03T16:33:49.000Z","dependencies_parsed_at":"2023-01-14T06:12:42.997Z","dependency_job_id":null,"html_url":"https://github.com/koopjs/koop-pgcache","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-pgcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-pgcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-pgcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-pgcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koopjs","download_url":"https://codeload.github.com/koopjs/koop-pgcache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247779796,"owners_count":20994569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T08:13:58.240Z","updated_at":"2025-04-10T10:41:25.833Z","avatar_url":"https://github.com/koopjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# koop-pgcache\n\n[![npm][npm-img]][npm-url]\n[![travis][travis-image]][travis-url]\n\n[npm-img]: https://img.shields.io/npm/v/koop-pgcache.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/koop-pgcache\n[travis-image]: https://img.shields.io/travis/koopjs/koop-pgcache.svg?style=flat-square\n[travis-url]: https://travis-ci.org/koopjs/koop-pgcache\n\nA PostGIS data cache for [Koop](https://github.com/Esri/koop).\n\nKoop'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.\n\n## Install\n\n```\nnpm install koop-pgcache\n```\n\n## Usage\n\nTo use a PostGIS cache, you need to have a PostgreSQL database with PostGIS enabled.\n\nDetailed installation guides for PostgreSQL are available [here](https://wiki.postgresql.org/wiki/Detailed_installation_guides).\n\nInstructions for enabling PostGIS on an existing PostgreSQL database are available [here](http://postgis.net/install/).\n\nOnce 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:\n\n```js\nvar config = {\n  'db': {\n    'conn': 'postgres://localhost/koopdev'\n  }\n}\n\nvar koop = require('koop')(config)\nvar koopPg = require('koop-pgcache')\n\nkoop.registerCache(koopPg)\n```\n\nIf everything was configured correctly, Koop should now be using your PostGIS database to cache data from providers.\n\n## Documentation\n\n* [koop-pgcache docs](http://koopjs.github.io/koop-pgcache/docs)\n\n## Resources\n\n* [Koop](https://github.com/Esri/koop)\n* [PostgreSQL](http://www.postgresql.org/)\n* [PostGIS](http://postgis.net/)\n* [ArcGIS for Developers](http://developers.arcgis.com)\n* [ArcGIS REST API Documentation](http://resources.arcgis.com/en/help/arcgis-rest-api/)\n* [@esri](http://twitter.com/esri)\n\n## Issues\n\nFind a bug or want to request a new feature?  Please let us know by submitting an issue.\n\n## Contributing\n\nEsri welcomes contributions from anyone and everyone. Please see our [guidelines for contributing](https://github.com/esri/contributing).\n\n## License\n\n[Apache 2.0](LICENSE)\n\n\u003c!-- [](Esri Tags: ArcGIS Web Mapping GeoJson FeatureServices) --\u003e\n\u003c!-- [](Esri Language: JavaScript) --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoopjs%2Fkoop-pgcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoopjs%2Fkoop-pgcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoopjs%2Fkoop-pgcache/lists"}