koopjs / koop-escache

ElasticSearch cache for Koop (experimental).
Other
2 stars 1 forks source link

add name, type, version to exports #8

Closed ungoldman closed 8 years ago

ungoldman commented 8 years ago

Same as https://github.com/koopjs/koop-pgcache/pull/28

Noticed there's already a type property being exported here (elasticsearch).

My reasoning for making type: 'cache' is that corresponds to type: 'plugin', as in https://github.com/koopjs/koop-tile-plugin/blob/master/index.js#L6-L10. Eventually all providers would export type of provider, all caches type of cache, all plugins type of plugin, so we could infer what to do with them more easily and display information from them through the API more automagically.

:tophat: :sparkles: :rabbit2:

dmfenton commented 8 years ago

consistency :trophy: