Skip to content

Commit d1f2e93

Browse files
committed
Fix JS error
1 parent 909fb11 commit d1f2e93

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cache.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
const client = require('redis');
55

6-
class Cache () {
6+
class Cache {
77

88
/**
99
* Set up general cache

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Install via npm:
1212

1313
const Cache = require('hapi-init-redis');
1414
const cache = new Cache({
15-
redisUrl:
15+
redisUrl: 'redis://127.0.0.1:6379',
16+
expiresIn: 1000 * 60 * 60
1617
});
1718

1819
// Setting an object in cache

0 commit comments

Comments
 (0)