{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"e35f4bdecf17d2d5cf829810c5141c35d5d4b4ff","tarball":"https://registry.npmjs.org/apollo-server-caching/-/apollo-server-caching-2.0.0-rc.3.tgz","fileCount":18,"integrity":"sha512-3MgOJXsAXoBfp+V40celevpPoXbtlKt2Uwmi76ol1MtBCle9M2PNX3FYFPmP+GjTbNdVt+yTlAgmpNbDNhDcRw==","signatures":[{"sig":"MEYCIQDsUFaFovGuJroIcEKOBc7gwlL3tdD4qqECC75a7iGCVwIhANGWSoLJIKavuWYFxErX2tIKu+cFqumRe80QP4mohh0X","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7939,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbL3LXCRA9TVsSAnZWagAAsNgP/03QGmPxsy3/VFbJMEBw\nz3EVuC97mUEY0eE6p6eZu39V6j4k6tNIRyz4eviVQjlXU2HC4Wa80Dsh57Aa\n7SkYwFfaonZ8dNQLEekWm783CkY9aX0BNpbqij7Cawd2w+EEpE8a60lBdVpG\nTdTtJmmnQid323j4kq75iJFA3+wK7cwGH+mOXaYjIXk2dq/fdhKv64lj5lM5\nJg7ptyda9D25AObFySt0rbfH5JD1JftqiK12cFwQnjKa9p31oNJDEahAN12l\n3u3pDkrwSBCI4Etd7crSROQ89mUtCMKny0mHDq8ne4UDW7cQB+7wCAFdy+fI\nuH+ARMr+Peag5u1NXjtwlI9CfPKidnaqNsb3hv60ieBM7M4GIItnQYAIJ/06\ndbo2Z+tgpz4vFO3b5hbcYnxzPUN/Cz7hlX64VFZ54cK2FqmzPy4G5jfWMmfB\nHuvuHXo9v8dECw0hlEaRACAZ2rT0Ie2egxBoR38ZJKbUHqBVw7C19S791/fO\nUvb6iclOfYj1syBjFOgYSJ4o3ESHkXIX2lM2tZgW0U/xbCSjsIzbRaF0DxPY\nXyZ5y9tHdVWKhfLk1U6jRYsPpobG6+QgR+ps8HFBYiTRt6QpHKEGHEmEKd80\nRP/Xs02OYTbJUNgGlLI9QYgze2BfVyvXZVmO+7NjLypoef5UVgX0noTbCSN6\nuR9X\r\n=VqIx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"apollo-server-caching","types":"dist/index.d.ts","author":{"name":"opensource@apollographql.com"},"readme":"## Implementing your own Cache\n\nInternally, Apollo Server uses the `KeyValueCache` interface to provide a caching store for the Data Sources. An in-memory LRU cache is used by default, and we provide connectors for [Memcached](../apollo-server-memcached)/[Redis](../apollo-server-redis) backends.\n\nBuilt with extensibility in mind, you can also implement your own cache to use with Apollo Server, in a way that best suits your application needs. It needs to implement the following interface that can be exported from `apollo-server-caching`:\n\n```typescript\nexport interface KeyValueCache {\n  get(key: string): Promise<string | undefined>;\n  set(key: string, value: string, options?: { ttl?: number }): Promise<void>;\n}\n```\n\n## Running test suite\n\nYou can export and run a jest test suite from `apollo-server-caching` to test your implementation:\n\n```typescript\n// ../__tests__/YourKeyValueCache.test.ts\n\nimport YourKeyValueCache from '../src/YourKeyValueCache';\nimport { testKeyValueCache } from 'apollo-server-caching';\ntestKeyValueCache(new MemcachedCache('localhost'));\n```\n\nRun tests with `jest --verbose`\n","engines":{"node":">=6"},"license":"MIT","scripts":{"clean":"rm -rf lib","compile":"tsc","prepublish":"npm run clean && npm run compile"},"_npmUser":{"name":"mdg","email":"npm@meteor.com"},"homepage":"https://github.com/apollographql/apollo-server#readme","deprecated":"This package is part of the legacy caching implementation used by Apollo Server v2 and v3, and is no longer maintained. We recommend you switch to the newer Keyv-based implementation (which is compatible with all versions of Apollo Server). See https://www.apollographql.com/docs/apollo-server/v3/performance/cache-backends#legacy-caching-implementation for more details.","repository":{"url":"https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-caching","type":"git"},"_npmVersion":"6.1.0","description":"Internally, Apollo Server uses the `KeyValueCache` interface to provide a caching store for the Data Sources. An in-memory LRU cache is used by default, and we provide connectors for [Memcached](../apollo-server-memcached)/[Redis](../apollo-server-redis) ","directories":{},"maintainers":[{"name":"mdg","email":"npm@meteor.com"}],"_nodeVersion":"8.11.2","_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/apollo-server-caching_2.0.0-rc.3_1529836247768_0.6936138828000649","host":"s3://npm-registry-packages"},"_id":"apollo-server-caching@2.0.0-rc.3","version":"2.0.0-rc.3"}