{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"6f5586e7bc78eb509ef6c7b8d88b98bee8422e12","tarball":"https://registry.npmjs.org/apollo-server-caching/-/apollo-server-caching-2.0.0-rc.8.tgz","fileCount":18,"integrity":"sha512-E0mvSfL+VITEAcEUAWKb+d9jUB3Qn17GoL6Mx8UB3ciySDwfcioxgQfkX98WxVPiKXQ1PEuwVesP4lRPVCldqA==","signatures":[{"sig":"MEQCIEy3dmUCnUJAZQwuu4O/p68/KnZn1wLZXqev/sBDgFl6AiAZg+2vxLeoNFBQvobQXmU9zhxD/Rm8DZX+M9VRjxtylw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8333,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbSUipCRA9TVsSAnZWagAAMPcP/1TcJIa2s3ygZtaodjys\nZkptlgpLrzbaQWGrQUiru3LBKwYDdBRXWbhpZzZPGlPHhbPobQZCBFnbpSsU\nOf71mrzUprxPtn515EhCV6VfLPc9uZaVRHo0g8mTQMSgDe9PjR6pNbmF5DmL\nmWFOkZkO+DH6S0slym1Wo50sD+DhDt18G9KMt008mIRMNbn5cmFGzhilzLdG\nnZxApkFp0JZLOCz5RoLepeJXhqiuT61AyxEYSsf9uzmyjJWX2QUACuJLyFLP\n3mvZ968rnMJVbuLxLdyA9gihWMKU9z7Cl4xS5clGeC+uTDLvNOCJoSTFAN0d\nAeqpHqhUdPg/GhD7H4CodjtJ9zULE2X34HMLFpbl4Z8i89CdeyO1Hkrn0XPr\nZy9cv3uJZ9eqR1tajrJz8tU1/ORrZHfASQxViJjGtll8MtHDALU1kuHKvLik\nIvIZnt3fOeuXjdFDGksSnddJpxRxtO0GfBqMrg8b3X8fAg9rBz4BIPJ4iRTk\nlTk9YaX7PkyjWc8BUKRqz5jnVm8RYa5/4vUOBoRDBvxyoo1HjJEvmgYZiIHw\nV8L1lDwljuR19IMa7P+xp78+5JwpRL1VaQCsHFVwZ+k9SZN2DnOA6r+7x5bk\nHzynt7QmreNiL5bJPmJnPsT/taeJc3EuuPQze2bpUpWprtmkKvkILOrLvJ5R\nduGe\r\n=/bzE\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":"# apollo-server-caching\n\n[![npm version](https://badge.fury.io/js/apollo-server-caching.svg)](https://badge.fury.io/js/apollo-server-caching)\n[![Build Status](https://circleci.com/gh/apollographql/apollo-server.svg?style=svg)](https://circleci.com/gh/apollographql/apollo-server)\n\n## 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 dist","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":"[![npm version](https://badge.fury.io/js/apollo-server-caching.svg)](https://badge.fury.io/js/apollo-server-caching) [![Build Status](https://circleci.com/gh/apollographql/apollo-server.svg?style=svg)](https://circleci.com/gh/apollographql/apollo-server)","directories":{},"maintainers":[{"name":"mdg","email":"npm@meteor.com"}],"_nodeVersion":"8.9.4","dependencies":{"lru-cache":"^4.1.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/lru-cache":"^4.1.1"},"_npmOperationalInternal":{"tmp":"tmp/apollo-server-caching_2.0.0-rc.8_1531529384905_0.5415390559020063","host":"s3://npm-registry-packages"},"_id":"apollo-server-caching@2.0.0-rc.8","version":"2.0.0-rc.8"}