{"id":16201897,"url":"https://github.com/ossycodes/simple-caching-with-redis-and-nodejs","last_synced_at":"2026-01-21T12:04:33.125Z","repository":{"id":52483381,"uuid":"263080580","full_name":"ossycodes/simple-caching-with-redis-and-Nodejs","owner":"ossycodes","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-12T18:13:02.000Z","size":51,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-07T19:25:58.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ossycodes.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}},"created_at":"2020-05-11T15:21:53.000Z","updated_at":"2020-05-11T20:57:18.000Z","dependencies_parsed_at":"2023-01-27T23:15:52.285Z","dependency_job_id":null,"html_url":"https://github.com/ossycodes/simple-caching-with-redis-and-Nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ossycodes/simple-caching-with-redis-and-Nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossycodes%2Fsimple-caching-with-redis-and-Nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossycodes%2Fsimple-caching-with-redis-and-Nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossycodes%2Fsimple-caching-with-redis-and-Nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossycodes%2Fsimple-caching-with-redis-and-Nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ossycodes","download_url":"https://codeload.github.com/ossycodes/simple-caching-with-redis-and-Nodejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossycodes%2Fsimple-caching-with-redis-and-Nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28632781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-10-10T09:44:47.648Z","updated_at":"2026-01-21T12:04:33.107Z","avatar_url":"https://github.com/ossycodes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"###\n\nTHIS IS JUST A SIMPLE IMPLEMENTATION OF CACHING IN REDIS.\n\nSO WHAT'S HAPPENING IN HERE ? \n\nWE HAVE A FAKE LIST OF MATCHED USERS FOR A GIVEN USER (THE LOGGED IN THE USER).\n\n1)WE FIRST MAKE A TRIP TO THE DATABASE (FAKE) TO  GET A LIST OF THE MACTHEDUSERS FOR THE GIVEN USER (THE LOGGEDIN USER) \n\n2)WE THEN PURGE THE CACHE WITH THE KEY (USERID),\nAND THEN,\nWE STORE THIS MATCHEDUSERS IN THE CACHE WITH THE USER ID AS KEY AND THE PAGE SIZE OR LIMIT AS FIELD\n\n\u003cbr\u003e\u003cbr\u003e\nSOMETHING LIKE THIS:\n\n`USER#USERID MACTCHEDPAGE#PAGESIZEORLIMIT\nEG user5ea708a40c244528c0e076c8 matchedpage1` \n\u003cbr\u003e\u003cbr\u003e\n3) THEN ON SUBSEQUENT REQUEST WE JUST FETCH THE MATCHEDUSERS FROM CACHE INSTEAD OF GIONG TO THE DATABASE,\nUNTIL IT EXPIRES (AFTER ONE DAY, WHICH WAS WHAT I SET TO BE TTL)\n\n###\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossycodes%2Fsimple-caching-with-redis-and-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fossycodes%2Fsimple-caching-with-redis-and-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossycodes%2Fsimple-caching-with-redis-and-nodejs/lists"}