UNPKG

ioredis-mock

Version:

This library emulates ioredis by performing all operations in-memory.

16 lines (11 loc) 273 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.setex = setex; var _index = require('./index'); function setex(key, seconds, value) { _index.set.call(this, key, value); _index.expire.call(this, key, seconds); return 'OK'; }