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.lpushx = lpushx; var _index = require('./index'); function lpushx(key, value) { if (!this.data.has(key)) { return 0; } return _index.lpush.call(this, key, value); }