{"id":25522257,"url":"https://github.com/dotnet-labs/immutable-collection-inmemory-cache","last_synced_at":"2026-05-01T17:35:49.944Z","repository":{"id":95004648,"uuid":"178634591","full_name":"dotnet-labs/Immutable-Collection-InMemory-Cache","owner":"dotnet-labs","description":"Working with Cache using Immutable Collections","archived":false,"fork":false,"pushed_at":"2020-07-09T20:15:17.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-21T12:51:30.619Z","etag":null,"topics":["asp-net-core","aspnetcore","cache","dotnet","dotnetcore","immutable","immutable-collections","memory-cache"],"latest_commit_sha":null,"homepage":"https://codeburst.io/a-use-case-of-immutable-collections-dd558f614722","language":"C#","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/dotnet-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"changhuixu","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-03-31T02:42:32.000Z","updated_at":"2021-04-16T01:55:57.000Z","dependencies_parsed_at":"2023-03-16T12:45:47.961Z","dependency_job_id":null,"html_url":"https://github.com/dotnet-labs/Immutable-Collection-InMemory-Cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dotnet-labs/Immutable-Collection-InMemory-Cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet-labs%2FImmutable-Collection-InMemory-Cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet-labs%2FImmutable-Collection-InMemory-Cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet-labs%2FImmutable-Collection-InMemory-Cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet-labs%2FImmutable-Collection-InMemory-Cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotnet-labs","download_url":"https://codeload.github.com/dotnet-labs/Immutable-Collection-InMemory-Cache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotnet-labs%2FImmutable-Collection-InMemory-Cache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32507091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["asp-net-core","aspnetcore","cache","dotnet","dotnetcore","immutable","immutable-collections","memory-cache"],"created_at":"2025-02-19T18:18:56.526Z","updated_at":"2026-05-01T17:35:49.922Z","avatar_url":"https://github.com/dotnet-labs.png","language":"C#","funding_links":["https://ko-fi.com/changhuixu"],"categories":[],"sub_categories":[],"readme":"# A Use Case of Immutable Collections\n\n## [Medium Article: A Use Case of Immutable Collections](https://codeburst.io/a-use-case-of-immutable-collections-dd558f614722)\n\nCaching can greatly improve an application’s performance by reducing the trips to fetch data that changes infrequently. The consistency of cached values is critical at run-time. At development time, we can avoid some human errors by setting caches to be **Immutable** Collections, so that cached values are not able to be mutated accidentally in code.\n\nThis blog post will use the simplest cache `IMemoryCache` in .NET Core to demonstrate usages of Immutable Collections, which is also native in .NET framework. The sample code is in this GitHub repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnet-labs%2Fimmutable-collection-inmemory-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotnet-labs%2Fimmutable-collection-inmemory-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnet-labs%2Fimmutable-collection-inmemory-cache/lists"}