{"id":25441996,"url":"https://github.com/aditya-narayan-sahoo/cache-api","last_synced_at":"2025-06-13T09:33:47.924Z","repository":{"id":276586272,"uuid":"929707259","full_name":"aditya-narayan-sahoo/cache-api","owner":"aditya-narayan-sahoo","description":"A lightweight in-memory caching API with expiration, built with Node.js and Express","archived":false,"fork":false,"pushed_at":"2025-02-09T07:33:50.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T19:09:45.490Z","etag":null,"topics":["backend"],"latest_commit_sha":null,"homepage":"https://cache-api-oykv.onrender.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aditya-narayan-sahoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-09T07:28:22.000Z","updated_at":"2025-02-09T07:38:56.000Z","dependencies_parsed_at":"2025-02-09T08:36:09.152Z","dependency_job_id":null,"html_url":"https://github.com/aditya-narayan-sahoo/cache-api","commit_stats":null,"previous_names":["aditya-narayan-sahoo/cache-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aditya-narayan-sahoo/cache-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya-narayan-sahoo%2Fcache-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya-narayan-sahoo%2Fcache-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya-narayan-sahoo%2Fcache-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya-narayan-sahoo%2Fcache-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aditya-narayan-sahoo","download_url":"https://codeload.github.com/aditya-narayan-sahoo/cache-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditya-narayan-sahoo%2Fcache-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259619258,"owners_count":22885468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend"],"created_at":"2025-02-17T13:16:23.477Z","updated_at":"2025-06-13T09:33:47.904Z","avatar_url":"https://github.com/aditya-narayan-sahoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### **🗄️ Cache API - In-Memory Key-Value Store**\n\nA lightweight in-memory caching API with expiration and LRU eviction, built with **Node.js** and **Express**, and deployed on **Render**.\n\n---\n\n## 🚀 **Features**\n\n✅ Store key-value pairs with a **POST** request.  \n✅ Retrieve stored values using a **GET** request.  \n✅ Delete a key-value pair using a **DELETE** request.  \n✅ Automatic **expiration mechanism** (default: **1 min** per entry).\n\n---\n\n## 📌 **API Endpoints**\n\n| Method   | Endpoint      | Description             |\n| -------- | ------------- | ----------------------- |\n| `POST`   | `/cache`      | Store a key-value pair  |\n| `GET`    | `/cache/:key` | Retrieve a value by key |\n| `DELETE` | `/cache/:key` | Remove a key-value pair |\n\n---\n\n## 🛠️ **Tech Stack**\n\n- **Node.js** + **Express**\n- **Vercel Serverless Functions**\n- **In-memory Caching (Map)**\n\n---\n\n## 🔧 **Installation**\n\nClone the repository:\n\n```\ngit clone https://github.com/aditya-narayan-sahoo/cache-api.git\n\ncd cache-api\n```\n\nInstall dependencies:\n\n```\nnpm install\n```\n\nRun locally:\n\n```sh\nnpm start\n\nOR\n\nnpm run dev\n```\n\n---\n\n## 📝 **Environment Variables (Optional)**\n\nCreate a `.env` file for custom configuration:\n\n```\nPORT=3000\n```\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditya-narayan-sahoo%2Fcache-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faditya-narayan-sahoo%2Fcache-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditya-narayan-sahoo%2Fcache-api/lists"}