UNPKG

ioredis-mock

Version:

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

13 lines (12 loc) 283 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.append = append; function append(key, value) { if (!this.data.has(key)) { this.data.set(key, ''); } this.data.set(key, this.data.get(key) + value); return this.data.get(key).length; }