Native Redis commands like LRANGE
don't exist at the Waterline ORM level. You'll need to access the underlying node_redis
adapter to use them. You can do this using the Waterline collection's native
method. If you have a User
collection in Sails, for example, it would be:
User.native(function(err, collection) {
// At this point "collection" is the native node_redis collection
collection.lrange("someKey", 0, 10, function(err, result) {
console.log(result);
});
});
Documentation for the underlying node_redis
adapter is here.