{"id":26155455,"url":"https://github.com/ntdls/ntdls.fastmemorycache","last_synced_at":"2026-02-26T23:34:00.297Z","repository":{"id":199534492,"uuid":"703183657","full_name":"NTDLS/NTDLS.FastMemoryCache","owner":"NTDLS","description":"A fast, easy to use, thread-safe partitioned memory cache for .net that helps manage the memory size and track performance.","archived":false,"fork":false,"pushed_at":"2025-11-13T23:42:20.000Z","size":134,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-14T01:16:44.486Z","etag":null,"topics":["cache","memory","nuget","performance"],"latest_commit_sha":null,"homepage":"https://networkdls.com/Entity/ntdls-fastmemorycache","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/NTDLS.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-10T18:49:20.000Z","updated_at":"2025-11-13T23:41:56.000Z","dependencies_parsed_at":"2023-10-13T05:58:48.545Z","dependency_job_id":"7c5292da-f192-48be-b207-7e7862edb07d","html_url":"https://github.com/NTDLS/NTDLS.FastMemoryCache","commit_stats":null,"previous_names":["ntdls/ntdls.fastmemorycache"],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/NTDLS/NTDLS.FastMemoryCache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.FastMemoryCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.FastMemoryCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.FastMemoryCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.FastMemoryCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NTDLS","download_url":"https://codeload.github.com/NTDLS/NTDLS.FastMemoryCache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.FastMemoryCache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29877030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T22:37:10.609Z","status":"ssl_error","status_checked_at":"2026-02-26T22:37:09.019Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["cache","memory","nuget","performance"],"created_at":"2025-03-11T08:56:14.136Z","updated_at":"2026-02-26T23:34:00.266Z","avatar_url":"https://github.com/NTDLS.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NTDLS.FastMemoryCache\n\n📦 Be sure to check out the NuGet package: https://www.nuget.org/packages/NTDLS.FastMemoryCache\n\nProvides fast and easy to use thread-safe partitioned memory cache for C# that helps manage the maximum size and track performance.\n\n👀 This memory cache was developed to deal with caches containing large numbers of items. When working on a database server written in C# we found that we had significant contention around the cache. This project was the solution. It also allowed us to better manage the size of the cache and enforce max memory constraints. That said, if you are only caching a few dozen items - stick with IMemoryCache.\n\n\n\u003e**Quick and easy example of a file cache:**\n\u003e\n\u003eUsing the memory cache is easy, just initialize and upsert some values.\n\u003e You can also pass a configuration parameter to set max memory size, cache scavenge rate and partition count.\n```csharp\nPartitionedMemoryCache _cache = new();\n\npublic string ReadFileFromDisk(string path)\n{\n    if (_cache.TryGet\u003cstring\u003e(cacheKey, out var cachedObject))\n    {\n        return cachedObject;\n    }\n\n    string fileContents = File.ReadAllText(path);\n    _cache.Upsert(cacheKey, fileContents, fileContents.Length * sizeof(char));\n    return fileContents;\n}\n```\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntdls%2Fntdls.fastmemorycache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntdls%2Fntdls.fastmemorycache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntdls%2Fntdls.fastmemorycache/lists"}