{"id":16683195,"url":"https://github.com/replaysmike/anycache","last_synced_at":"2026-04-21T22:32:09.144Z","repository":{"id":96630108,"uuid":"251468792","full_name":"replaysMike/AnyCache","owner":"replaysMike","description":"AnyCache is a modified clone of LazyCache for caching any .Net type in a thread-safe manner","archived":false,"fork":false,"pushed_at":"2020-04-30T02:48:26.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T15:19:49.299Z","etag":null,"topics":["asp-net","asp-net-core","c-sharp","cache","caching","inmemory","lazy","lazycache","performance","redis"],"latest_commit_sha":null,"homepage":"","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/replaysMike.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":"2020-03-31T01:22:18.000Z","updated_at":"2020-04-30T02:48:28.000Z","dependencies_parsed_at":"2023-04-27T21:33:07.562Z","dependency_job_id":null,"html_url":"https://github.com/replaysMike/AnyCache","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/replaysMike%2FAnyCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replaysMike%2FAnyCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replaysMike%2FAnyCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replaysMike%2FAnyCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/replaysMike","download_url":"https://codeload.github.com/replaysMike/AnyCache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243402696,"owners_count":20285285,"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":["asp-net","asp-net-core","c-sharp","cache","caching","inmemory","lazy","lazycache","performance","redis"],"created_at":"2024-10-12T14:23:34.260Z","updated_at":"2025-12-29T22:34:12.678Z","avatar_url":"https://github.com/replaysMike.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AnyCache\n[![nuget](https://img.shields.io/nuget/v/AnyCache.svg)](https://www.nuget.org/packages/AnyCache/)\n[![nuget](https://img.shields.io/nuget/dt/AnyCache.svg)](https://www.nuget.org/packages/AnyCache/)\n[![Build status](https://ci.appveyor.com/api/projects/status/gfwjabg1pta7em94?svg=true)](https://ci.appveyor.com/project/MichaelBrown/AnyCache)\n\nAnyCache is a modified clone of [LazyCache](https://github.com/alastairtree/LazyCache) for caching any .Net type, with multiple storage providers available. It provides an in-memory cache that leverages Microsoft.Extensions.Caching and provides performance and reliability in heavy load scenarios.\n\n## Installation\n\n```Powershell\nPM\u003e Install-Package AnyCache\n```\n\n## Getting Started\n\n```csharp\n// This follows the exact same interface as LazyCache. Create or inject (DI) your caching service\nIAppCache cache = new CachingService();\n\n// Get our existing item in the cache by referencing its key, and provide the factory to create a new object if it's not in the cache\nvar myObjectInstance = cache.GetOrAdd\u003cMyObject\u003e(\"uniqueKey\", () =\u003e methodThatTakesTimeOrResources());\n```\n\n## Features\n\n* Super simple usage with sliding or absolute expiration\n* Thread safe, concurrency ready\n* Async compatible (where LazyCache had some issues)\n* Supports dependency injection\n* Strongly typed generics and object based support\n\n## Providers\n\n* [Redis distributed storage](https://github.com/replaysMike/AnyCache.Providers.Redis)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplaysmike%2Fanycache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freplaysmike%2Fanycache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplaysmike%2Fanycache/lists"}