{"library":"pixl-server-storage","title":"pixl-server-storage","description":"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.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install pixl-server-storage"],"cli":null},"imports":["import { StorageComponent } from 'pixl-server-storage'","import pixlServerStorage from 'pixl-server-storage'","import { StorageComponent } from 'pixl-server-storage'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { StorageComponent } from 'pixl-server-storage';\n\nconst storage = new StorageComponent({\n  engine: 'filesystem',\n  engine_path: '/tmp/storage',\n  debug: true\n}, (err) => {\n  if (err) throw err;\n  console.log('Storage initialized');\n});\n\n// Store a record\nstorage.put('user:123', { name: 'Alice', email: 'alice@example.com' }, (err) => {\n  if (err) throw err;\n  console.log('Record stored');\n});\n\n// Fetch a record\nstorage.get('user:123', (err, data) => {\n  if (err) throw err;\n  console.log('Fetched:', data);\n});","lang":"typescript","description":"Initializes the storage component with filesystem engine, stores and fetches a JSON record asynchronously.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}