{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"4df430aaed2ac7a96093c38e6c0a59af64cc549f","tarball":"https://registry.npmjs.org/apollo-server-caching/-/apollo-server-caching-0.2.0-alpha.2.tgz","fileCount":20,"integrity":"sha512-vDx3cp5VWc/yo1qw0Lukrt4+7VPcnakscsB2pkxjt4v8H41toukHyLxFigqLKJXU6QbJbCMLpmJRtYA5foHDGQ==","signatures":[{"sig":"MEYCIQDRsmuS5RcHsywQRRxfUvWbi62ZpyN33yAMw9hMw88BxAIhAKnLmXJELLt1QFlkqL8G4mv6JxR7fuTE5C04cxwd5ph1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4J4HCRA9TVsSAnZWagAATMgP/0eQ9EHz5wpzcphmJDqM\nNbSPpg3GNlFylpWSov4K1iAchWkYmjjUP/nAEgpO/1J9ZpZnX88l37UHn/nf\nw5oGLdBcAwuX6n78/B41+IXAwmix33DBMR0ZcPkIxOUeTA0+jKTh1MsHkO5H\nBJsxR0LoWC06As1hDk5usDmYr5kAV50ToeY/WJgHQq720EKi11Btjs5NbRq2\nDlWFb+Hp804sG/wdwt/zYEHm3nJE4LhsIOe7Tgv/yPGw8kKaIAi3gkAAnaji\ni5KrvFUpJssbncFu3RphKbJm9u2k1OG3e0HH9V5EgN+aDqKSoZWucNOks9rv\nlpNPJ3YLI44GCAdpMy3abEt188Mp9voXX9mga+XLmkOlLCs1KEKEQMTiIvMT\nbyqJqbHA8ZxFdxNP/otnnVyXjBtoYohtCifCCTpg1yy0yqPN8rUuyCAdeneH\n50wcKPfAImu82svBCLBN04P8QGOqyRyUMOTNP1LMYQgFOVkZju7BY+I8oLIj\naUSb+1/OaG0Si0gPYqTwkWnsdBVYppp2LOsdt27DP27Hk0TAwDu8Nsb5uoax\ne+L7LEMPXfXUtLTWkNC0X1qXHzBXIizZvDTn2yLD8iALsPWir6lCNLdVLKF+\nJ/+AjajxMah7qF9WWVpT272mb3hXBjwlRo7ZHdBtac/8c2mlCLfSJN0mhctq\n0pZZ\r\n=jrMi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"apollo-server-caching","_from":"file:apollo-server-caching-0.2.0-alpha.2.tgz","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-cache-memcached)/[Redis](../apollo-server-cache-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"},"gitHead":"a6872c2f6ca2db03e9f237510b3fc6802d390785","license":"MIT","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"homepage":"https://github.com/apollographql/apollo-server#readme","_resolved":"","_integrity":"","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.4.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":"apollo-bot","email":"npm@apollographql.com"}],"_nodeVersion":"8.12.0","dependencies":{"lru-cache":"^4.1.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/apollo-server-caching_0.2.0-alpha.2_1541447174884_0.4437381225194248","host":"s3://npm-registry-packages"},"_id":"apollo-server-caching@0.2.0-alpha.2","version":"0.2.0-alpha.2"}