{"id":24169714,"url":"https://github.com/kamil-kubiczek/memcached-with-node","last_synced_at":"2026-05-08T14:35:05.792Z","repository":{"id":272192587,"uuid":"915772891","full_name":"kamil-kubiczek/memcached-with-node","owner":"kamil-kubiczek","description":"Express Node.js REST API with Memcached as cache","archived":false,"fork":false,"pushed_at":"2025-01-13T16:41:42.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-21T10:51:15.351Z","etag":null,"topics":["docker","dummyjson","express","memcached","rest-api","winston-logger"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/kamil-kubiczek.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,"zenodo":null}},"created_at":"2025-01-12T19:00:17.000Z","updated_at":"2025-01-13T16:41:46.000Z","dependencies_parsed_at":"2025-07-21T10:32:11.668Z","dependency_job_id":"dbc4a3e1-9ceb-4824-88dd-19f5405379b6","html_url":"https://github.com/kamil-kubiczek/memcached-with-node","commit_stats":null,"previous_names":["kamil-kubiczek/memcached-with-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kamil-kubiczek/memcached-with-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-kubiczek%2Fmemcached-with-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-kubiczek%2Fmemcached-with-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-kubiczek%2Fmemcached-with-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-kubiczek%2Fmemcached-with-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamil-kubiczek","download_url":"https://codeload.github.com/kamil-kubiczek/memcached-with-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-kubiczek%2Fmemcached-with-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32784728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","dummyjson","express","memcached","rest-api","winston-logger"],"created_at":"2025-01-12T23:14:21.179Z","updated_at":"2026-05-08T14:35:05.773Z","avatar_url":"https://github.com/kamil-kubiczek.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About project\n\nProjects is example of small Node.js service which acts as REST API with custom in-memory database and memcached cache. **Feel free to use it as reference or fork it!**\n\nPostman collection: [Endpoints collection](https://www.postman.com/restaurant-backend-developers-team/memcached-with-node)\n\n## Installation\n\nUse the npm package manager to install dependencies\n\n```bash\nnpm i\n```\n\nCreate docker container with memcached with **default port**\n\n```bash\ndocker run --name my-memcached -d memcached\n```\n\n## Run\n\n```bash\nnpm run start\n```\n\n## How it works\n\nEvery time client requests Express API cached endpoint, API searches for cached query in memcached. If it's available it's returned, if not, it's downloaded from artificially slowed in-memory database and cached again in background. If you run API you will see if some data was cached or not (CACHE HIT/MISS) inside logs.\n\nHere's flowchart of process:\n\n```mermaid\nflowchart TD\n    A[\"Express API\"] \u003c--\u003e n1[\"Memcached container\"] \u0026 n2[\"In-memory database\"]\n    n3[\"Client\"] \u003c--\u003e A\n\n    n3@{ shape: rect}\n    style A stroke:#2962FF\n    style n1 stroke:#00C853\n    style n2 stroke:#FFD600\n    style n3 stroke:#616161\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamil-kubiczek%2Fmemcached-with-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamil-kubiczek%2Fmemcached-with-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamil-kubiczek%2Fmemcached-with-node/lists"}