UNPKG

ioredis-mock

Version:

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

15 lines (12 loc) 258 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hget = hget; function hget(key, hashKey) { var hash = this.data.get(key); if (!hash || hash[hashKey] === undefined) { return null; } return hash[hashKey]; }