Redis hash utilities for Node.js that simplify CRUD operations (save, get, search, count, remove) on Redis hashes with optional indexing for full-text search via reds. Current stable version 0.6.1 (last published 2019, no recent updates). It flattens and serializes objects before storing, supports bulk operations, and includes indexing for search queries. Alternatives include ioredis or node_redis directly for lower-level control.
npm install redis-hashesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes redis-hashes, saves a user object to a Redis hash in the 'users' collection, then retrieves it by ID.
If upgrading from <0.5, update search logic or re-index data.
Consider switching to ioredis or node_redis directly.
Implement search via Redisearch or custom indexing.
Use dot notation when querying fields.
Convert timestamps back to Date when reading if needed.
Start Redis server or provide correct connection in options.
Use const client = require('redis-hashes')(options);Run npm install reds and ensure it's in node_modules.