Toshihiko-Redis
The redis support for Toshihiko as an addon.
Installation
$ npm install toshihiko-redis
How to Use
When you define a Toshihiko, you could pass the object into cache
option:
var T = ;var toshihiko = "database" "username" "" cache: name: "redis" servers: "localhost:6379" options: prefix: "_" ;
name
must beredis
and then Toshihiko will search for the packagetoshihiko-redis
.
servers
may be a string for the server addresses.
Otherwise, you may create this object by yourself and pass the created object into cached:
var Redis = ;var object = Redis;var toshihiko = DATABASE USERNAME PASSWORD cache: object;
or
var Redis = ;var object = SERVRES OPTIONS;var toshihiko = DATABASE USERNAME PASSWORD cache: object;
DEBUG
use dubug lib
DEBUG=toshihiko-redis