{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"31a672f52254ea399a84053e40c2b5c54e12296a","tarball":"https://registry.npmjs.org/apollo-server-caching/-/apollo-server-caching-2.0.0-rc.6.tgz","fileCount":18,"integrity":"sha512-lpzH2kVmd1GxAoemapcWsoe3yU+E63mcVsKie5J5KxzmqTZBpmpaPKvWxWaLdsr148ZJTKN1WmrA9hSQ13MI4A==","signatures":[{"sig":"MEQCIH3GmUcK+BNX8A4Q6EsL5uUf1FNN6R4FbeMbHoaOf99SAiB/r1BXsIakgTZsQjm7w3rYwLdN4HQLkEdzb5GSv9rGMQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7940,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbNnofCRA9TVsSAnZWagAAtz8P/0YNykApzMMPYyyodikK\nS/gi6dtXKn38GHvfdnpzY+SaT1a5KvPrxNau6KRn1av1+o8YwrTbGUavGjXF\nnoh7KZk3uEW4ZpryXTXnEhzuVUq6iO957qP5Xi0cGmr2F6bf8dXDdsdPzr3b\n+AyY5A9KtK8qdPyJbtMiV1Tp4epxTCO0b/UcZarcMCoT45BqvYkLZbxb+EVV\nIYr+f28m0DQqThj5EHiouTS0x6KfnAl6NQzFcQt5MQ8SK5qWC8p9ij/Mpkj0\n0SVvNlxpaaH7hW7hsN7E75azhhl0NKB7O2lUj5sjZ9Z8ZX7OUaz42qzbjgl+\n9cdd5QCnYi/8R0lavBXwz4X0KXdHfyXsFk562ZbIWf/WS9aOZKHl8hD2vp6h\n6R7Gw8J4YvKgf6+mLjlmnHZ0IHQDF7ARD6GJrrdgJ8IGN3435+MFOGAYvFxM\n19FH7ZeO6aZF2XNwgp/I+Ftd0ALUx9IJYwVbEx5PO0KclOnumajR87LNvOvV\n2hPu44nBM8rXrXJOSM0+bLiLd4LSQfYaOfyofp/Td/D+W2AkLZpYAUWg9Ggm\nQiqsQRFMHHoiJIlW+6fBrnmZT5IdxvZ+Y6m/IQjeVkkwKyKGLpzQObPEAdg8\ngapDUDoQKaK16BeHpA2n/BixTnFUacmuIn5JggqW7WDiZc74H79tihluNnd3\ns3LC\r\n=fy6I\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 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":"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.6_1530296863582_0.2845874343393411","host":"s3://npm-registry-packages"},"_id":"apollo-server-caching@2.0.0-rc.6","version":"2.0.0-rc.6"}