A Node.js library for interacting with CartoDB metadata stored in Redis. Version 3.0.1 supports Node.js >=12.16.3 and npm >=6.14.4. It provides a straightforward API to access CartoDB-specific Redis structures, handling serialization and connection pooling internally. Unlike generic Redis clients, cartodb-redis knows the exact schema and provides methods like getInfo, set, and del for user, table, and visualization metadata. Maintained by CartoDB with moderate release cadence for compatibility.
npm install cartodb-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a CartoDB Redis client with environment-configured connection, fetches user metadata, and handles errors.
Always call redisClient.end() after completing operations, or manage pool lifecycle properly.
Use the provided methods (getInfo, setInfo) instead of direct Redis commands.
Update calls to pass an object with 'username' property instead of positional string.
Ensure Redis is running and accessible via the configured host and port.
Use `const CartoDBRedis = require('cartodb-redis'); const client = new CartoDBRedis(...);`Run `npm install underscore` to add the peer dependency.