{"id":14977748,"url":"https://github.com/bygui86/spring-redis","last_synced_at":"2026-04-02T02:48:05.418Z","repository":{"id":121962290,"uuid":"168969069","full_name":"bygui86/spring-redis","owner":"bygui86","description":"Spring Boot Redis sample project","archived":false,"fork":false,"pushed_at":"2019-03-25T19:11:45.000Z","size":67,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-06T09:46:29.791Z","etag":null,"topics":["lombok-maven","mavenw","messaging","redis-cache","redis-database","redis-db","spring-boot-2","spring-boot-2-1","spring-data","spring-data-redis","spring-redis"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bygui86.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-02-03T16:58:12.000Z","updated_at":"2024-07-19T22:21:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"c26463dc-fc30-423a-af9e-452b9baf552c","html_url":"https://github.com/bygui86/spring-redis","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"dbc773691797da3bc9bb69dfa9a61bddee4a9d49"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bygui86/spring-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bygui86%2Fspring-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bygui86%2Fspring-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bygui86%2Fspring-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bygui86%2Fspring-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bygui86","download_url":"https://codeload.github.com/bygui86/spring-redis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bygui86%2Fspring-redis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278686634,"owners_count":26028325,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["lombok-maven","mavenw","messaging","redis-cache","redis-database","redis-db","spring-boot-2","spring-boot-2-1","spring-data","spring-data-redis","spring-redis"],"created_at":"2024-09-24T13:56:15.260Z","updated_at":"2025-10-06T21:43:46.751Z","avatar_url":"https://github.com/bygui86.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Spring Boot Redis sample project\n\n## Sub-projects\n\nSpring Boot Redis sample projects:\n* Redis as DB - Spring Data Redis\n* Redis for caching - Spring Caching\n* Messaging with Redis - Spring Data Redis\n\n---\n\n## Prerequisites\n\n* docker\n* curl / httpie / postman\n\n---\n\n## Run sample\n\nStart Redis\n```\ndocker run -d --rm --name redis -p 6379:6379 redis:alpine redis-server --appendonly yes\n```\n\nStart application\n```\ncd \u003cPROJECT_ROOT_FOLDER\u003e/\u003cSUB_PROJECT_FOLDER\u003e\nmvnw clean package spring-boot:run\n```\n\nNow you can call the exposed endpoints.\n\n`PLEASE NOTE: A bench of sample data are loading automatically in the DB.`\n\n---\n\n## Exposed endpoints\n\n* Redis as DB\n\t* GET /posts   --\u003e   Get all posts\n\t* GET /posts/{id}   --\u003e   Get post by id\n\t* POST /posts   --\u003e   Insert new post\n\t* PUT /posts   --\u003e   Update existing post\n\t* DELETE /posts   --\u003e   Delete all posts\n\t* DELETE /posts/{id}   --\u003e   Delete post by id\n\n* Redis for caching\n\t* GET /posts   --\u003e   Get all posts\n\t* GET /posts/{id}   --\u003e   Get post by id\n\t* POST /posts   --\u003e   Insert new post\n\t* PUT /posts   --\u003e   Update existing post\n\t* DELETE /posts   --\u003e   Delete all posts\n\t* DELETE /posts/{id}   --\u003e   Delete post by id\n\t* GET /cache   --\u003e   Get all cache keys\n\t* GET /cache/{key}   --\u003e   Get cache by key\n\t* DELETE /cache   --\u003e   Evict whole cache\n\t* DELETE /cache/{key}   --\u003e   Evict cache by key\n\n`PLEASE NOTE: URL root http://localhost:8080`\n`PLEASE NOTE: Messaging with Redis does not expose any endpoint, it's a simple batch application`\n\n---\n\n## Links\n\n### Redis as DB\n\n* https://www.baeldung.com/spring-data-redis-tutorial\n\n### Redis for caching\n\n* https://medium.com/@MatthewFTech/spring-boot-cache-with-redis-56026f7da83a\n* https://www.baeldung.com/spring-boot-evict-cache\n* https://www.baeldung.com/spring-cache-tutorial\n\n### Messaging with Redis\n\n* https://spring.io/guides/gs/messaging-redis/\n* https://dzone.com/articles/intro-to-redis-with-spring-boot\n* https://www.baeldung.com/spring-data-redis-pub-sub\n\n### Redis\n\n* https://blog.serverdensity.com/monitor-redis/\n* https://dzone.com/articles/6-crucial-redis-monitoring-metrics-you-need-to-wat\n\n### Others\n\n* https://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html\n* https://www.baeldung.com/spring-boot-data-sql-and-schema-sql\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbygui86%2Fspring-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbygui86%2Fspring-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbygui86%2Fspring-redis/lists"}