graphile-cache 1.4.11 → 1.4.12

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 +5 -5
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -67,7 +67,7 @@ if (cached) {
67
67
  }
68
68
  ```
69
69
 
70
- ### Automatic cleanup when pools disappear
70
+ ### Automatic cleanup
71
71
 
72
72
  The cleanup happens automatically:
73
73
 
@@ -96,13 +96,13 @@ import { postgraphile } from 'postgraphile';
96
96
 
97
97
  function getGraphileInstance(database: string, schema: string): GraphileCache {
98
98
  const key = `${database}.${schema}`;
99
-
99
+
100
100
  // Check cache first
101
101
  const cached = graphileCache.get(key);
102
102
  if (cached) {
103
103
  return cached;
104
104
  }
105
-
105
+
106
106
  // Create new instance
107
107
  const pgPool = getPgPool({ database });
108
108
  const handler = postgraphile(pgPool, schema, {
@@ -110,13 +110,13 @@ function getGraphileInstance(database: string, schema: string): GraphileCache {
110
110
  graphiqlRoute: '/graphiql',
111
111
  // other options...
112
112
  });
113
-
113
+
114
114
  const entry: GraphileCache = {
115
115
  pgPool,
116
116
  pgPoolKey: database,
117
117
  handler
118
118
  };
119
-
119
+
120
120
  // Cache it
121
121
  graphileCache.set(key, entry);
122
122
  return entry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-cache",
3
- "version": "1.4.11",
3
+ "version": "1.4.12",
4
4
  "author": "Dan Lynch <pyramation@gmail.com>",
5
5
  "description": "PostGraphile LRU cache with automatic pool cleanup integration",
6
6
  "main": "index.js",
@@ -49,5 +49,5 @@
49
49
  "postgresql",
50
50
  "launchql"
51
51
  ],
52
- "gitHead": "00c90828cab8d3e306ebb2bc6053aab4aa9ae807"
52
+ "gitHead": "ea3f6b8d86ba521ee629411efb4cf4133cc6e302"
53
53
  }