Added Redis store support

This commit is contained in:
John Crepezzi
2011-11-18 19:52:18 -05:00
parent 26c148ff37
commit a1d5f79708
5 changed files with 83 additions and 4 deletions

View File

@@ -16,6 +16,40 @@ Major design objectives:
3. `npm install`
4. `npm start`
## Storage
## File
To use file storage (the default) change the storage section in `config.js` to something like:
``` json
{
"path": "./data",
"type": "file"
}
```
Where `path` represents where you want the files stored
### Redis
To use redis storage you must install the redis package in npm globall using
`npm install redis --global`
Once you've done that, your config section should look like:
``` json
{
"type": "redis",
"host": "localhost",
"port": 6379,
"db": 2
}
```
All of which are optional except `type` with very logical default values.
## Author
John Crepezzi <john.crepezzi@gmail.com>