{"id":23402872,"url":"https://github.com/kieranmueller/v2-redis-springboot-api","last_synced_at":"2026-04-10T16:41:38.902Z","repository":{"id":188616308,"uuid":"679085218","full_name":"KieranMueller/v2-redis-springboot-api","owner":"KieranMueller","description":"Caching with Redis and Spring Boot. (YouTube video not as fresh as repo)","archived":false,"fork":false,"pushed_at":"2023-08-16T18:26:35.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T17:38:50.288Z","etag":null,"topics":["cache","java","redis","spring"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=9VzmVkqbQHg\u0026t=24s","language":null,"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/KieranMueller.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":"2023-08-16T04:19:38.000Z","updated_at":"2023-08-16T18:52:13.000Z","dependencies_parsed_at":"2024-12-22T12:37:54.109Z","dependency_job_id":"7190a317-66ce-4bd1-bb7e-5fae4729f0cd","html_url":"https://github.com/KieranMueller/v2-redis-springboot-api","commit_stats":null,"previous_names":["kieranmueller/v2-redis-springboot-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KieranMueller%2Fv2-redis-springboot-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KieranMueller%2Fv2-redis-springboot-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KieranMueller%2Fv2-redis-springboot-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KieranMueller%2Fv2-redis-springboot-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KieranMueller","download_url":"https://codeload.github.com/KieranMueller/v2-redis-springboot-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247936583,"owners_count":21021067,"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":["cache","java","redis","spring"],"created_at":"2024-12-22T12:37:50.293Z","updated_at":"2026-04-10T16:41:38.863Z","avatar_url":"https://github.com/KieranMueller.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# v2-redis-springboot-api\nCaching with Redis and Spring Boot\n\n# Redis\nRedis stands for Remote Dictionary Server. It is used as a distributed, \nin-memory key–value database, cache and message broker\n\n# Steps\n- install Redis, Windows currently unsupported, can either use Windows Subsystem for Linux, or this Windows adaption https://github.com/tporadowski/redis/releases\n- run 'redis-server' to start server on default port: 6379\n- open new terminal, run 'redis-cli'\n- run command 'ping' to test connection, should receive response 'pong'\n- configure database settings in application properties, alter maven dependencies as needed\n- run project and postman collection\n- implemented 2 second delay to GET all request to clearly present functionality of Redis cache in action, time to live is 60 mins\n  - this means: if you experience a 2 second delay in the GET all request, it was a 'cache miss', this will occur when\n    -  the data is being accessed for the first time and the cache needs to be filled/hydrated\n    -   the data has been altered (PUT, POST, DELETE) since the cache was last accessed or 'hit'\n    -   the time to live expired (60 mins)\n- take note of response time between cache misses and cache hits\n- take note of logger - logging calls to DB\n- run multiple instances of application simultaneously and send requests to see cache in action across the board\n\n# TODO\n- implement failsafe, ensure application bypasses cache if server is down etc. and hits DB, set max time to try hitting cache, or if response is null, bypass\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkieranmueller%2Fv2-redis-springboot-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkieranmueller%2Fv2-redis-springboot-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkieranmueller%2Fv2-redis-springboot-api/lists"}