Company
Date Published
Author
Redis
Word count
1544
Language
English
Hacker News points
None

Summary

This application allows users to track when materials are "dry" or cured, using Node.js and Redis Enterprise Cloud. It provides two main operations: `paint` to add a coat of paint to a room, which sets a timer for the material to dry, and `readytopaint` to check if it's safe to apply another coat. The application uses Redis's set data type to track rooms and their associated timers, allowing for efficient management of multiple users and coats. The `paint` operation takes a user ID, room name, and duration as arguments, while the `readytopaint` operation takes only the user ID and room name. The application also includes help text and error handling using yargs. With a small JSON file providing connection options, the application can be run from the command line to track paint drying times.