RedisDOWN is a LevelDOWN-compatible adapter that allows LevelUP databases to use Redis as the storage backend. Version 0.1.12 is the latest release. It uses a sorted set for key ordering and a hash for values, with a single Lua call for iteration. Key differentiators include support for an external Redis client option, URL-based configuration (e.g., REDIS_URL, REDISCLOUD_URL), and passing the abstract-leveldown test suite except for implicit iterator snapshots. It requires Redis 2.8+ and Node 0.10+.
npm install redisdownNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a LevelUP database with RedisDOWN backend, putting and getting a value.
Do not rely on iterator snapshot consistency; consider taking a snapshot manually.
Upgrade Redis server to version 2.8 or later.
Consider migrating to ioredis-based adapter if available, or pin redis package to v2.
Explicitly close the Redis client after closing all redisdown instances.
Ensure location is unique to avoid accidental data loss.
Start Redis server: redis-server, or check host/port options.
Use const redisdown = require('redisdown').const db = levelup('mydb', { db: redisdown })