Canto is a value-added Redis client library (v0.1.3) that provides high-level abstractions like a Cache class for composing Redis operations and managing data structures. It wraps the node_redis client and exposes a simple callback-based API. The package is in early development with sparse documentation and limited community adoption. It is not actively maintained (last release 2014) and is not recommended for new projects.
npm install cantoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a Cache instance with Redis configuration, stores an object with TTL, then retrieves it.
Consider using ioredis or redis-om for modern Redis features.
Always provide a valid redis object with host and port.
Use the documented signature: cache.put({value: obj, ttl: ms}, callback) or cache.put(value, callback).Check source code or test thoroughly; consider converting manually: ttl/1000.
Start Redis server with 'redis-server' or update the Redis configuration in Cache constructor.
Ensure correct import: const { Cache } = require('canto'); then instantiate: const cache = new Cache({...});