idealley / feathers-hooks-rediscache

Set of caching hooks and routes for feathersjs.
MIT License
38 stars 12 forks source link

add support for nested routes #15

Closed juckerf closed 7 years ago

juckerf commented 7 years ago

when specified with the config option parseNestedRoutes placeholders in the path are replaced with its their actual values. this prevents conflict for routes like /author/:authorId/books (without replacing :authorId books for different authors would be saved under the same key in redis).

(probably one should also parse the parent property, but this is not as important as the key itself)

coveralls commented 7 years ago

Coverage Status

Coverage increased (+1.6%) to 76.923% when pulling fbc87f0a3e232adf70f12fd644298755917b8821 on juckerf:master into 42742fe7533acafbf87c9326d27bb9ff4f78d24a on idealley:master.

idealley commented 7 years ago

Thank you. this is a nice addition.