UNPKG

@contentacms/redis

Version:

Redis wrapper for ContentaJS, a drop in replacement for the LRU in-memory cache.

13 lines (9 loc) 154 B
"use strict"; const Keyv = require('keyv'); let keyv; module.exports = options => { if (!keyv) { keyv = new Keyv(options); } return keyv; };