Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lorensr
Created April 2, 2020 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorensr/f007f18f9665ea013274fffe1eb2ed29 to your computer and use it in GitHub Desktop.
Save lorensr/f007f18f9665ea013274fffe1eb2ed29 to your computer and use it in GitHub Desktop.
import { InMemoryLRUCache } from 'apollo-server-caching'
...
initialize({ context, cache } = {}) {
this.context = context
this.cache = cache || new InMemoryLRUCache()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment