{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"5c71313643c456dc4ac39f4586ff20a3f098baec","tarball":"https://registry.npmjs.org/apollo-server-caching/-/apollo-server-caching-2.0.0-rc.5.tgz","fileCount":18,"integrity":"sha512-WoDfxg9OFd4iGrExm1rqnZBF7B5eArZpFFGy8FWSxjB/vvAC16EKGcCAk136qysxyeAjgUyiQO84PucNHFu2Tw==","signatures":[{"sig":"MEQCIFvztI/aLxCNEMWeTnsiiRoIz97qTvu6ibWuHxe4+XxUAiA7l/eNkmrWppRYqWBujmG/hVBLgBMQYbInmeJLajHCFA==","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\nwsFcBAEBCAAQBQJbMX/xCRA9TVsSAnZWagAAomgP/3uwBU8gcIB2d413BF3w\nogoq5CXdu5V5Pk12cIU613Z7aMnLZRmeeDSeswdBANQIdr4fNM9dVpb0EeFg\n778z45K72lM9iy8D5aPS59DBB+HyrKSBKQDHSZ0jizVUbZ3AI4AVMLLZhggb\nUvNsOUoeaDcsxshcKuUFb5UkQiBLZoGPOQEhU0ifLPX81YswzWdA5DaKxIJr\nijx3H4IWEAc4ot0rcF2RlHu1Raxj1BqU4XqRoE4S+3vJoSO07G0FViIJlDXN\nJKFASPKK0fnZ7pdVod5lWK2iUreM+LEqDtGuZpS1SWVBi7cW0uFDY7MlxopS\nDA8YEmFhuFm7m9yHJR+WsRjFMtC1gSQfJE+0Fw+Zf8i43Qzhs3zHguQ2EHtJ\n0OPLsRmCijt/mH9DGGX8vWQrRA31YYZkX5Yasscnkh9agCryzI4IMEjEN/yA\neeceu9EIPhdjNXXCxHzCHTmjH1HAyyCpTtK8lqA2KQTjPb5NMkOoeBmN7EUU\n3CpwOi2VOI83mHLImAROZwH2VZVAADS8DbHiGGwfGiqDuRA60/jWpk0Z2pPv\np7A7f2vtcZrGQtIZknc1OAduWXm2HMScfmhOPeNB7F5ccrcrOS/re/yihj2y\nN9M/RnkOKUjqhgiERXUPX3A7ahQthCU899ge0ZWkhlz8H3JNck1/0+RfSkOX\ncykD\r\n=AzqT\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":"5.7.1","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.9.4","_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/apollo-server-caching_2.0.0-rc.5_1529970673485_0.13456389407728553","host":"s3://npm-registry-packages"},"_id":"apollo-server-caching@2.0.0-rc.5","version":"2.0.0-rc.5"}