Skip to content

Commit 521f057

Browse files
committed
Fix reference to cacheClient
1 parent 327b67a commit 521f057

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cache.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Cache {
2525
set (key, value, expiresIn = this.config.expiresIn, callback = () => {}) {
2626
value = JSON.stringify(value);
2727

28-
cacheClient.set(key, value, 'PX', expiresIn, (error) => {
28+
this.cacheClient.set(key, value, 'PX', expiresIn, (error) => {
2929
if (error) {
3030
throw error;
3131
}
@@ -42,7 +42,7 @@ class Cache {
4242
*/
4343
get (key, callback) {
4444

45-
cacheClient.get(key, (error, value) => {
45+
this.cacheClient.get(key, (error, value) => {
4646
try {
4747
value = JSON.parse(value);
4848
} catch (error) {}

0 commit comments

Comments
 (0)