A key/value/list storage component for the pixl-server framework, providing multiple back-end engines including local filesystem, Amazon S3, Redis, SQLite, and hybrid. Version 4.1.0 is current, with regular updates. It introduces chunked linked lists for fast list operations, hash tables with key iteration, transaction system for atomic commits/rollbacks, advisory locking, and full-text search indexing. Designed for simplicity and low memory usage, it stands out by supporting multiple storage back-ends with consistent API and built-in maintenance features like auto-expiration and compaction.
npm install pixl-server-storageVerified import paths — ran on the pinned version, not inferred.
Initializes the storage component with filesystem engine, stores and fetches a JSON record asynchronously.
Upgrade Node.js to 12+ or stay on pixl-server-storage@3.x.
Manually normalize keys before passing to API.
Always provide an absolute path for 'engine_path' when using filesystem engine.
Update 'redis' dependency to ^4.0.0 and adjust connection options accordingly.
Install 'aws-sdk' v2 (e.g., 'npm install aws-sdk@2') and configure region/credentials.
Ensure 'engine_path' directory exists and is writable. Use an absolute path.
Use ESM import syntax: import { StorageComponent } from 'pixl-server-storage'.Set 'engine' to one of the valid options or implement a custom engine plugin.
Start Redis server or configure 'engine_opts' with correct host/port.