An async utility data structure library using Redis as the backing store, providing map-like collections with automatic persistence. This is an early-stage package (v0.0.1) with TypeScript support. It differentiates itself from similar libraries by focusing on simple async data structures (like maps) that synchronize state with Redis, suitable for distributed applications requiring shared state across processes or servers without a full ORM. The library aims to be lightweight with minimal dependencies, appealing to developers needing quick Redis-backed caches or stores. However, as a pre-1.0 release, APIs are unstable and documentation is sparse.
npm install redis-collectionNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a Redis client, creates a Map collection, performs put/get/exists/delete operations, and cleans up resources.
Pin to exact version and test upgrades thoroughly.
Always use await or handle promises properly.
Add try-catch around async operations or attach error handler to Redis client.
Use only primitive types or ensure your objects are JSON-safe.
Monitor the GitHub repository for breaking changes.
Use named import: import { Map } from 'redis-collection'Run npm install redis-collection
Ensure await is used: const map = await new Map({...}).init(); or similar if constructor is async.