0.1.0-rc.10 • Published 7 years ago

apollo-server-memcached v0.1.0-rc.10

Weekly downloads
403
License
MIT
Repository
github
Last release
7 years ago

MemcachedCache

This package exports an implementation of KeyValueCache that allows using Memcached as a backing store for resource caching in Data Sources.

Usage

const { MemcachedCache } = require('apollo-server-memcached');

const server = new ApolloServer({
  typeDefs,
  resolvers,
  cache: new MemcachedCache(
    ['memcached-server-1', 'memcached-server-2', 'memcached-server-3'],
    { retries: 10, retry: 10000 }, // Options
  ),
  dataSources: () => ({
    moviesAPI: new MoviesAPI(),
  }),
});

For documentation of the options you can pass to the underlying memcached client, look here.

0.1.0-rc.10

7 years ago

0.1.0-rc.9

7 years ago

2.0.0-rc.8

7 years ago

2.0.0-rc.7

7 years ago

2.0.0-rc.6

7 years ago

2.0.0-rc.5

7 years ago

2.0.0-rc.3

7 years ago

2.0.0-rc.2

7 years ago

2.0.0-rc.1

7 years ago

2.0.0-rc.0

7 years ago