{"id":26219950,"url":"https://github.com/selcukgural/ramcache","last_synced_at":"2026-04-26T09:31:39.639Z","repository":{"id":143336519,"uuid":"322293362","full_name":"selcukgural/RAMCache","owner":"selcukgural","description":"RAMCache  a simple cache in-memory for .Net applications","archived":false,"fork":false,"pushed_at":"2021-01-16T20:15:16.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-14T22:10:54.770Z","etag":null,"topics":["cache","cache-library","caching","dictionary"],"latest_commit_sha":null,"homepage":"https://www.selcukgural.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/selcukgural.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-12-17T12:49:47.000Z","updated_at":"2024-12-18T22:39:54.000Z","dependencies_parsed_at":"2024-05-04T23:34:59.996Z","dependency_job_id":null,"html_url":"https://github.com/selcukgural/RAMCache","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/selcukgural/RAMCache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selcukgural%2FRAMCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selcukgural%2FRAMCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selcukgural%2FRAMCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selcukgural%2FRAMCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selcukgural","download_url":"https://codeload.github.com/selcukgural/RAMCache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selcukgural%2FRAMCache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28025399,"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","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"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":["cache","cache-library","caching","dictionary"],"created_at":"2025-03-12T14:30:09.488Z","updated_at":"2025-12-25T09:03:52.455Z","avatar_url":"https://github.com/selcukgural.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿![Logo](https://github.com/selcukgural/RAMCache/blob/master/RAMCache/images/32x.png) RAMCache - a simple cache in-memory for .Net applications\n========================================\n\nRAMCache is a [NuGet library](https://www.nuget.org/packages/RAMCache) that you can add in to your .Net or .Net Core project.\n\n`Install-Package RAMCache`\n\nBasics\n--------\nAdd a new entry with will delete when expire time is come. This mean, when entry expire time is come entry will be deleted. For this case expire time is 30 minutes.\n\n```csharp\nramCache.Add(key, value, TimeSpan.FromMinutes(30));\n```\nor\n```csharp\nvar key = \"Barış Manço\";\nvar value = \"Nick the chopper\";\ncache.AddOrUpdate(key,value);\n```\nGetting value\n```csharp\nobject val;\ncache.Get(key, out val); //Nick the chopper\n```\n\u003cbr/\u003e\n\nExamples\n--------\n###### Web Api example usage:\n\n``` csharp\nservices.AddRAMCache(e =\u003e e.MaximumItemCount = 5000);\n```\n\n\n```csharp\n    public class Startup\n    {\n        public Startup(IConfiguration configuration)\n        {\n            Configuration = configuration;\n        }\n\n        public IConfiguration Configuration { get; }\n\n        public void ConfigureServices(IServiceCollection services)\n        {\n            services.AddControllers();\n\n            services.AddRAMCache(e =\u003e e.MaximumItemCount = 5000);\n        }\n        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)\n        {\n            if (env.IsDevelopment())\n            {\n                app.UseDeveloperExceptionPage();\n            }\n\n            app.UseRouting();\n            app.UseAuthorization();\n            app.UseEndpoints(endpoints =\u003e\n            {\n                endpoints.MapControllers();\n            });\n        }\n    }\n```\n\nAdd RAMCache to services and you can use it by injecting\n\n```csharp\nprivate readonly IRAMCache _ramCache;\npublic WeatherForecastController(IRAMCache ramCache)\n{\n    _ramCache = ramCache;\n}\n```\n\n###### For other application types example usage:\n\n```csharp\npublic static readonly RAMCache RamCache = new RAMCache(new RAMCacheServiceOptions{MaximumItemCount = 5000});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselcukgural%2Framcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselcukgural%2Framcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselcukgural%2Framcache/lists"}