You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -13,7 +13,7 @@ Redis cache ready to scale with node-pool support
13
13
14
14
## Prerequisites
15
15
16
-
This module requires nodejs v4 or above as it has dependencies on constious es6 components such as Map, Set, Promise etc.
16
+
This module requires nodejs v4 or above as it has dependencies on es6 components such as Map, Set, Promise etc.
17
17
18
18
## Featuring
19
19
- Out of the box default configuration (but fully configurable)
@@ -31,17 +31,56 @@ This module requires nodejs v4 or above as it has dependencies on constious es6
31
31
32
32
npm install simple-redis-cache
33
33
34
-
var RedisCache = require("simple-redis-cache");
35
-
var cache = new RedisCache();
34
+
const RedisCache = require("simple-redis-cache");
35
+
const cache = new RedisCache();
36
36
37
37
// set
38
38
cache.set("key", "value");
39
39
40
+
#### API
41
+
42
+
- RedisCache([options])
43
+
44
+
#### `options` object properties
45
+
46
+
| Property | Default | Description |
47
+
|-----------|-----------|-------------|
48
+
| name | Random unique string | Name your pool |
49
+
| redisOptions |```{url: redis://127.0.0.1:6379}```| opts from https://github.com/NodeRedis/node_redis#options-object-properties|
50
+
| poolOptions | null | opts from https://github.com/coopernurse/node-pool#createpool|
51
+
| logger | null | Inject your custom logger |
52
+
40
53
### Run tests
41
54
42
55
bash test.sh
43
-
44
-
45
-
### Contributing
56
+
57
+
## Contribute
58
+
59
+
[Discover how you can contribute by heading on over to the `CONTRIBUTING.md` file.](https://github.com/pasupulaphani/simple-redis-cache/blob/master/CONTRIBUTING.md)
60
+
61
+
## Backers
62
+
63
+
### Maintainers
64
+
65
+
These amazing people are maintaining this project:
[](http://patreon.com/phaninder"Donate to this project using Patreon")
74
+
[](https://gratipay.com/~pasupulaphani/"Donate weekly to this project using Gratipay")
75
+
[](https://flattr.com/profile/pasupulaphani"Donate to this project using Flattr")
76
+
<!-- [](https://phaninder.com/paypal "Donate to this project using Paypal") -->
77
+
<!-- [](https://phaninder.com/bitcoin "Donate once-off to this project using Bitcoin") -->
78
+
<!-- [](https://phaninder.com/wishlist "Buy an item on our wishlist for us") -->
79
+
80
+
### Contributors
81
+
82
+
These amazing people have contributed code to this project:
Feel free to make changes. Please see the [Contributors' Guide](https://github.com/pasupulaphani/simple-redis-cache/blob/master/CONTRIBUTING.md) for more information on contributing to the documentation.
0 commit comments