meteor-redis
a simple meteorite package for Atmosphere, providing a wrapper for the node-redis driver by @mranney.
How to install:
- make sure you have meteorite installed
$ npm install -g meteorite
- inside your project, run:
$ mrt add redis
meteor-redis
will install its dependencies and use the hiredis client if possible, as it is also listed as a dependency.
In your Meteor project:
Somewhere in your server
code, have the app connect to Redis:
1Meteor.startup(function() { 2 // connect to Redis 3 client = redis.createClient(); 4});
meteor-redis
exposes the redis
object, so its already available to you to implement wherever it makes sense to do so.
Pull requests / issues
Please feel free to make pull requests and submit issues here. Thank you!
TODO:
- Add tests. If anyone would like to submit tests, please do!