{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"485bfb4a99931c6dbdc2120dbb4bb5a6c7a23254","tarball":"https://registry.npmjs.org/apollo-server-caching/-/apollo-server-caching-0.2.0-alpha.1.tgz","fileCount":20,"integrity":"sha512-k001aJHG5XOVPlJY66bl7f/RP762ZhqLJqpreqyUte21bAufihwumI7gELC4iJxA+rqLKWYBNDQHV4bl4hKA9w==","signatures":[{"sig":"MEUCIGBmfjkhnCP6Zdq3binKjCiRj09lfV14oSWiVzRN9/s1AiEAt/ULPATka4SLYDajwncYZ7o4HrmXc0vncFIB764vxO0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb01zkCRA9TVsSAnZWagAA7n4QAJSkaDYKo0hif2YWzNe2\nOEGPNM1DNSYLGySYF6jcARUpfYVt1C7O3vzwHLKlwEQaeGe6J1yTQbMRlsmy\n9tGO3TbFlsUrJ6pjNJixhy3fWs6bB9UcliezZNIEx793i0CYVMhRA4QKqdPG\n0eTKYyiHa+fPhdA8eQRBeuhIiW8EmgfMXQSZLP0Ze97UJfJ9bNKQqX2sjlt3\nm7WAZDh5htfecqW9P/1eDk0eprO8C9tA0z3vwIjwp3e8d7G4KcbYtw9PXsso\nPMfU/a1o0mo8swzpobJ316VmohUIdy/ezN/xn1lJArWgbw4u+MszHjFJ97fV\ntKPujNADXCXY/ta6S7BbECJLdAdqyaPkNHqp+mt8Rr7LbvZUpxmy5tDnxc5j\nxekEY47CBtzrTVj1Ae9UhyA2jcVmdujSZ7W6ZY+/TGqZMNKkZSGgdjTwZskb\nar0dC44NTXccQL9z+YA7a5fCQtRwL0x3Ln0flw73WERhivjlWfJWfwr7udAV\nKnkJPJ4UPqee1RHYnCTt2bftdWdbYe2dMtUMf3SdxgsbHNOIcxD0zTrzZmjC\nQEJvNvrIopAxmqHKSUCXb/1KTM+nb17fh3X9ItWn7TOTmZa5GYY4hneGLKzF\nCVPgtJ6agahkOQgHwOEGLe2GFhHF0h7BACuD8+cGz6/WQVSmq9C1mgZhywzn\nl32t\r\n=jpsJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"apollo-server-caching","_from":"file:apollo-server-caching-0.2.0-alpha.1.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":"5b8388323325c14970601310d7864b86010cbebe","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.1_1540578532182_0.35987593306675447","host":"s3://npm-registry-packages"},"_id":"apollo-server-caching@0.2.0-alpha.1","version":"0.2.0-alpha.1"}