1.0.3 • Published 4 years ago

@landingexp/apollo-server-cache-memcached v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

MemcachedCache

npm version Build Status

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-cache-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.

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.6.6

4 years ago

0.6.7-alpha.0

4 years ago