A simple API demonstration using tinyhttp and node-cache for in-memory caching.
npm installRun the server with Node.js watch mode:
node --watch app.js- Creates or updates a cached item
- Body: JSON object
- Returns: Created/Updated object
- Cache TTL: 15 seconds
- @tinyhttp/app - Lightweight Express-like web framework
- @tinyhttp/logger - Logger middleware
- node-cache - Simple in-memory caching
- milliparsec - Body parsing middleware