{"bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"dist":{"shasum":"f57486731a3372eebbc561d3e229997473468b25","tarball":"https://registry.npmjs.org/apollo-server-caching/-/apollo-server-caching-0.2.0-alpha.0.tgz","fileCount":19,"integrity":"sha512-j0hhme9NYBY44/Ekc1WjqNceMTgJPm7ZE8YFjoJL9gP0HrSTldaADh6MJoSs6cLaaN8fzMTNDLDjZl+XNoX/wA==","signatures":[{"sig":"MEUCIGLRCvfqAj66oqTYGH9E9yGxXmkA8VjfvOIZQwruluv6AiEAkpKYBFZDtRgk32vaF5B1XjP0pKVFQNbaLKDNaJVJMTU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbvlOBCRA9TVsSAnZWagAA52gP/0+JitmT++Aci6iVWrJl\n2IDr7SADH82/UB57CuVW0QMcKoTJXCXwtNyldWjJElbETzfC7DRHrMvSxbcf\nZA2czjMehlnqzlQe+Tq/wb4cQX2VTAHY0fb/NaFzbXDNHPEjljo7AgSm9sET\nF5l/icjekxyPgyRqBhweTUxHdm6pffMytIvxgazaS9LBJ3wWZCo7Ae4oUy79\nL5psuWVGoarRkkSU/Cp8CslTU0TTcy3H3rEMTA/ZJ6x002QZR6cOi/r/65OI\nyzRbUANuCRQT5q1DHBpjrz0ggDKgbgKXQMWpbR/yMhOczZ9g6mobRfxaPGDG\nrdKj8YZISJ3dQrapBpt6DDwQBLIK+KXXBYur2iIECRYPewi7hnnkbm08LvJv\nUFFZYMmOrU2VnWrLgD0F0FoiB6tSX19Xv0NBVXp1sVdiVXvcKlU9cckvVtrh\nh9oI+h1NTiEmI9rB/xvGskF6r4TqDDKAErecztSr/S0N76ND++mqedHmkycC\nfnaD5JndcOkrL3vf1sXFVR9Ms3AxRPqvD3jMKhrHDrvMxH5F6Ek4XnmwSzUQ\nH1hAYvkNadLcEjM6JXjgduIA1XBvHg3S1h72CmSZ8TKPJuzl3VXOwbNzFXL9\naq9tOwAZ4BXf1DU/LPBe7+VA+B5lBIgtK8EBHdnBnOhutQWpKUlxZTS4vQdq\nZuQi\r\n=YLGw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"apollo-server-caching","_from":"file:apollo-server-caching-0.2.0-alpha.0.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":"dec2b94a0e309c1c75b3e9f3d7b4011e36a7e48a","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.0_1539199872222_0.5213901271990802","host":"s3://npm-registry-packages"},"_id":"apollo-server-caching@0.2.0-alpha.0","version":"0.2.0-alpha.0"}