0.1.0-rc.11 • Published 6 years ago
apollo-server-redis v0.1.0-rc.11
RedisCache
This package exports an implementation of KeyValueCache
that allows using Redis as a backing store for resource caching in Data Sources.
Usage
const { RedisCache } = require('apollo-server-redis');
const server = new ApolloServer({
typeDefs,
resolvers,
cache: new RedisCache({
host: 'redis-server',
// Options are passed through to the Redis client
}),
dataSources: () => ({
moviesAPI: new MoviesAPI(),
}),
});
For documentation of the options you can pass to the underlying redis client, look here.
0.1.0-rc.12
6 years ago
0.1.0-rc.11
6 years ago
0.1.0-rc.10
6 years ago
0.1.0-rc.9
6 years ago
2.0.0-rc.8
6 years ago
2.0.0-rc.7
6 years ago
2.0.0-rc.6
6 years ago
2.0.0-rc.5
6 years ago
2.0.0-rc.3
6 years ago
2.0.0-rc.2
6 years ago
2.0.0-rc.1
6 years ago
2.0.0-rc.0
6 years ago