Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache API Demo

A simple API demonstration using tinyhttp and node-cache for in-memory caching.

Installation

npm install

Development

Run the server with Node.js watch mode:

node --watch app.js

API Endpoints

POST /:id

  • Creates or updates a cached item
  • Body: JSON object
  • Returns: Created/Updated object
  • Cache TTL: 15 seconds

Dependencies

  • @tinyhttp/app - Lightweight Express-like web framework
  • @tinyhttp/logger - Logger middleware
  • node-cache - Simple in-memory caching
  • milliparsec - Body parsing middleware

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages