sails-redis is a Redis adapter for Sails.js and Waterline ORM, enabling Redis as the data store for Sails models. Version 1.0.0 is the latest stable release. It provides a lightweight, event-driven interface for CRUD operations and is designed specifically for the Sails framework. Compared to other adapters like sails-mongo, it offers fast key-value lookups but lacks complex querying capabilities. The adapter is officially maintained by the Sails core team and follows Waterline adapter conventions, supporting connection pooling and pub-sub for real-time features. It is suitable for caching, session storage, or simple data models that benefit from Redis's speed.
npm install sails-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Quick setup of sails-redis adapter with connection configuration and basic CRUD operations.
Upgrade to Node.js 10 or later.
Use import syntax or switch to v0.x if CJS required.
Use `returnBuffers` instead of `return_buffers` in connection config.
For complex operations, consider another adapter like sails-mongo.
Run `npm install sails-redis@1.0.0` in the Sails app directory.
Switch to import syntax or use v0.x of sails-redis that supports CJS.
Start Redis server with `redis-server` or set the REDIS_URL environment variable to a valid server.