{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"20fa1cc6b490e0283220122c9b9f21d6a9068d4d","tarball":"https://registry.npmjs.org/apollo-server-caching/-/apollo-server-caching-2.0.0-rc.7.tgz","fileCount":18,"integrity":"sha512-ibW4KOQlxrq3uzU9NL6EvNfGarKy9y8Fbsm10FyY0QQV+O0x29jo9BkeqKW/G63g/5aJi/ijg5MWJWye99gIhw==","signatures":[{"sig":"MEUCIDZv8mTK5yWhX6eOU8GtOCOecwBr/Agda/3zEy5EQW/8AiEAxMiGFoeiK2Dfz0xFnXV8Jd0kQP3v6GiefvneZXLMaWs=","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\nwsFcBAEBCAAQBQJbRBrgCRA9TVsSAnZWagAAzU0P/2jY+HBlFF2tFXZ7LyhZ\nWXb2ETKGEMP4DlYS6Ca/KcazrHJxPvbzDwBhzgYTHSjmZyy/bS44HCS7iR6I\n6soLGQ5ffw9hqvhY1JO/GmpXM68El8ZWZD6n+NiP9mmKgOEp9/9gLJx0P7ja\nd5d6yNJeFOFHRvn3RiosStp9FjjOm90/PA1Smnn93ev3uE4SvkBnM0tWrVNB\nltLFDnuMoV+P0Ke2eQkqFcRwso8jRUFR96w3KhJazixSkW4f41FU++A2NkV9\nD6foJJpK91qOnMw9yQLGf2Xrhpc4yRgyQh52IrV1rS9Por7qt2mF9Zzp/GwX\ngObXx9FcQqcImXkcAa2OZ1Xk/9YIrJGfrk47nGOXYaqMCn7KtxPKAs5iCMaW\nFOgtTgZkR3Fu44CosF2Pp7LKJLugPwfe/AtdMEoAS1DwcaM8JlPfhy7ELRoz\nuQ2VF4tLPF58UKO0t4ZQQWTwwP466lxNge67/jPXggsw3rEYzhARBYjwXkPu\nmOUYMBob3PUYbw3nPs40NRiOIay6wafCL4EpWGeAenBJYz61EOQDhpbEZZxL\nJ1gIZ42nRp4LSm5r30nsFKQKIFtUPKWI56YNo0lC72XAL4Wi+zxi2n/Ga6Ib\nqSe3ne73lL/jnm4wlt2qP9B2XC+dFe5bXqcCVkLWftP+sXijpaSfd2nEfWYL\naNAX\r\n=dqT9\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.7_1531189984276_0.906851960641007","host":"s3://npm-registry-packages"},"_id":"apollo-server-caching@2.0.0-rc.7","version":"2.0.0-rc.7"}