{"id":19147726,"url":"https://github.com/yringler/distributed-middleware-cache","last_synced_at":"2025-07-18T11:07:54.063Z","repository":{"id":46262588,"uuid":"261551216","full_name":"yringler/distributed-middleware-cache","owner":"yringler","description":"A fork of ResponseCachingMiddleware which allows a custom IResponseCache","archived":false,"fork":false,"pushed_at":"2021-11-03T14:58:18.000Z","size":83,"stargazers_count":3,"open_issues_count":3,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-19T17:57:44.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/yringler.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}},"created_at":"2020-05-05T18:23:58.000Z","updated_at":"2021-11-03T14:58:21.000Z","dependencies_parsed_at":"2022-08-29T00:30:33.961Z","dependency_job_id":null,"html_url":"https://github.com/yringler/distributed-middleware-cache","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/yringler%2Fdistributed-middleware-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yringler%2Fdistributed-middleware-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yringler%2Fdistributed-middleware-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yringler%2Fdistributed-middleware-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yringler","download_url":"https://codeload.github.com/yringler/distributed-middleware-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252802648,"owners_count":21806548,"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":[],"created_at":"2024-11-09T07:51:21.041Z","updated_at":"2025-05-07T02:44:08.898Z","avatar_url":"https://github.com/yringler.png","language":"C#","readme":"# flex-middleware-cache\nA fork of ResponseCachingMiddleware which provides more flexibility. Note that it uses official aspnetcore code directly (via git submodules and csproj linking).\n\n## DistributedResponseCache\nUsage is similar to [ResponseCachingMiddleware](https://docs.microsoft.com/en-us/aspnet/core/performance/caching/middleware?view=aspnetcore-3.1). Set the ResponseCachingStrategy to ResponseCachingStrategy.Distributed when calling AddResponseCaching and replace UseResponseCaching with UseCustomResponseCaching.\u003cbr\u003e\nIt will use whatever implementation of IDistributedCache that is injected into it.\n\n```c#\npublic void ConfigureServices(IServiceCollection services)\n{\n    services.AddResponseCaching(options =\u003e\n    {\n        options.ResponseCachingStrategy = ResponseCachingStrategy.Distributed;\n    });\n}\n```\n```c#\npublic void Configure(IApplicationBuilder app, IWebHostEnvironment env)\n{\n    app.UseCustomResponseCaching();\n}\n```\n\n## ModifiableDistributedResponseCache\nThis is a wrapper around DistributedResponseCache which allows you to easily exert some basic control over the underlying IDistributedCache. You can use your own custom logic to force the cache to clear, or to just ignore it.\u003cbr\u003e\nTo use, set the ResponseCachingStrategy to ResponseCachingStrategy.ModifiableDistributed and call UseCustomResponseCaching().\u003cbr\u003e\nAnd inject IModifiableCacheController into the service provider.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyringler%2Fdistributed-middleware-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyringler%2Fdistributed-middleware-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyringler%2Fdistributed-middleware-cache/lists"}