UNPKG

ioredis-mock

Version:

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

16 lines (12 loc) 265 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.rpushx = rpushx; var _index = require('./index'); function rpushx(key, value) { if (!this.data.has(key)) { return 0; } return _index.rpush.call(this, key, value); }