Skip to content

Commit 87ff469

Browse files
committed
fix(readme): minor updates
1 parent cc81e79 commit 87ff469

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@
44
##### This repository is a fork of [feathers-hooks-rediscache](https://github.com/idealley/feathers-hooks-rediscache), with the following changes:
55
- refactor and simplified API and source code (details bellow).
66
- support of feathers pagination hook, when it's enabled or disabled per the same endpoint.
7+
- key always generated in before hook.
8+
- option to pass custom logger function to log errors.
9+
- option to pass custom `/cache` prefix for redis routs.
10+
- option to pass custom `cacheKey(hook)` function in before hook, to customize key generation.
11+
- implementing `.purge()` hook, so you can place in after create/patch/update/remove hooks to purge entire group and avoid having keys with corrupted values in the cache.
712
- remove `hookCache` now to set custom expiration date you need to pass it as an option in after hook.
813
- remove `redisCache` from config.
9-
- key always generated in before hook
14+
- remove `parseNestedRoutes`, `removePathFromCacheKey`, `defaultDuration` (by default it will expire in 24hr), `immediateCacheKey` options.
1015

1116
### Installation
1217

0 commit comments

Comments
 (0)