@envelop/response-cache-redis 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -22,7 +22,7 @@ In order to use the Redis cache, you need to:
22
22
  - Create an instance of the Redis Cache and set to the `useResponseCache` plugin options
23
23
 
24
24
  ```ts
25
- import { parse, validate, execute, subscribe } from 'graphql'
25
+ import { parse, validate, specifiedRules, execute, subscribe } from 'graphql'
26
26
  import { envelop, useEngine } from '@envelop/core'
27
27
  import { useResponseCache } from '@envelop/response-cache'
28
28
  import { createRedisCache } from '@envelop/response-cache-redis'
@@ -46,7 +46,7 @@ const cache = createRedisCache({ redis })
46
46
 
47
47
  const getEnveloped = envelop({
48
48
  plugins: [
49
- useEngine({ parse, validate, execute, subscribe }),
49
+ useEngine({ parse, validate, specifiedRules, execute, subscribe }),
50
50
  // ... other plugins ...
51
51
  useResponseCache({ cache })
52
52
  ]
@@ -56,7 +56,7 @@ const getEnveloped = envelop({
56
56
  ### Invalidate Cache based on custom logic
57
57
 
58
58
  ```ts
59
- import { parse, validate, execute, subscribe } from 'graphql'
59
+ import { parse, validate, specifiedRules, execute, subscribe } from 'graphql'
60
60
  import { envelop, useEngine } from '@envelop/core'
61
61
  import { useResponseCache } from '@envelop/response-cache'
62
62
  import { createRedisCache } from '@envelop/response-cache-redis'
@@ -70,7 +70,7 @@ const cache = createRedisCache({ redis })
70
70
 
71
71
  const getEnveloped = envelop({
72
72
  plugins: [
73
- useEngine({ parse, validate, execute, subscribe }),
73
+ useEngine({ parse, validate, specifiedRules, execute, subscribe }),
74
74
  // ... other plugins ...
75
75
  useResponseCache({
76
76
  ttl: 2000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envelop/response-cache-redis",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {},
6
6
  "dependencies": {