{"id":20531766,"url":"https://github.com/binakot/spring-data-redis-null-elements","last_synced_at":"2025-03-06T02:46:29.755Z","repository":{"id":134568983,"uuid":"226850621","full_name":"binakot/spring-data-redis-null-elements","owner":"binakot","description":"The sample project to show a problem of storing collections with `null` elements in Spring Redis Data.","archived":false,"fork":false,"pushed_at":"2019-12-09T12:01:44.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-16T12:55:08.404Z","etag":null,"topics":["collection","null","problem","redis","spring","spring-data","spring-data-redis","spring-data-redis-example"],"latest_commit_sha":null,"homepage":"https://github.com/spring-projects/spring-data-redis/issues/1648","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binakot.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-12-09T11:00:48.000Z","updated_at":"2023-10-13T10:39:35.000Z","dependencies_parsed_at":"2023-06-25T20:04:42.375Z","dependency_job_id":null,"html_url":"https://github.com/binakot/spring-data-redis-null-elements","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binakot%2Fspring-data-redis-null-elements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binakot%2Fspring-data-redis-null-elements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binakot%2Fspring-data-redis-null-elements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binakot%2Fspring-data-redis-null-elements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binakot","download_url":"https://codeload.github.com/binakot/spring-data-redis-null-elements/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242138800,"owners_count":20078007,"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":["collection","null","problem","redis","spring","spring-data","spring-data-redis","spring-data-redis-example"],"created_at":"2024-11-16T00:09:37.383Z","updated_at":"2025-03-06T02:46:29.748Z","avatar_url":"https://github.com/binakot.png","language":"Java","readme":"## Spring Data Redis\n\nThe sample project to show a problem of storing collections with `null` elements in Spring Redis Data.\n\nWhen we save the java nullable object as `null`, Redis just skips it, because it hasn't an equivalent for `NULL`.\nOn saving collections with some nulls, method will be break on the first null element in a collection.\nIt's okay for NULL-ending collections, but we're missing elements with NULL-leading or NULL in a middle collections.\n\nLine of the code that break write elements on the first null:\nhttps://github.com/spring-projects/spring-data-redis/blob/master/src/main/java/org/springframework/data/redis/core/convert/MappingRedisConverter.java#L705\n\nCommit that adding this feature:\nhttps://github.com/spring-projects/spring-data-redis/commit/2492fbe332b7565e0724b8f7ec6c62f5d3178b25#diff-b71f4f4366952781ed005f6224ff7d5dR511\n\nProject is based on: \nhttps://github.com/eugenp/tutorials/tree/master/persistence-modules/spring-data-redis\n\n### Relevant Articles:\n- [Introduction to Spring Data Redis](http://www.baeldung.com/spring-data-redis-tutorial)\n- [PubSub Messaging with Spring Data Redis](http://www.baeldung.com/spring-data-redis-pub-sub)\n- [An Introduction to Spring Data Redis Reactive](https://www.baeldung.com/spring-data-redis-reactive)\n\n### Build the Project with Tests Running\n```\nmvn clean install\n```\n\n### Run Tests Directly\n```\nmvn test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinakot%2Fspring-data-redis-null-elements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinakot%2Fspring-data-redis-null-elements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinakot%2Fspring-data-redis-null-elements/lists"}