{"id":24517899,"url":"https://github.com/moattarwork/simplecache","last_synced_at":"2025-06-30T02:04:53.452Z","repository":{"id":88929144,"uuid":"349998081","full_name":"moattarwork/SimpleCache","owner":"moattarwork","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-21T13:38:38.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T11:11:32.082Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moattarwork.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":"2021-03-21T12:54:05.000Z","updated_at":"2021-03-21T13:38:40.000Z","dependencies_parsed_at":"2023-03-13T18:17:39.870Z","dependency_job_id":null,"html_url":"https://github.com/moattarwork/SimpleCache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moattarwork/SimpleCache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moattarwork%2FSimpleCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moattarwork%2FSimpleCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moattarwork%2FSimpleCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moattarwork%2FSimpleCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moattarwork","download_url":"https://codeload.github.com/moattarwork/SimpleCache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moattarwork%2FSimpleCache/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262697249,"owners_count":23349890,"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":"2025-01-22T01:35:58.267Z","updated_at":"2025-06-30T02:04:53.426Z","avatar_url":"https://github.com/moattarwork.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleCache\n\nSimpleCache is a simple solution for caching. It's a library written in .net 5.0.\n\n## How to use\n\nThe Unit test project explains different type of the usage for the Cache. Here are some samples from the usages:\n\n```csharp\n\n// Simple use \nvar cache = new Cache\u003cstring\u003e();\n\ncache.Set(\"key 1\", \"Sample values\");\ncache.Set(\"key 2\", \"Sample other values\");\n\nvar cachedValue = cache.Get(\"key 1\");\n\n\n// Cache with notification \nvar cache = new Cache\u003cstring\u003e(2, opt =\u003e { opt.OnItemEvicted = n =\u003e /* Handling of the notification*/ });\n\n\n```\n\n## Extension Points\n\n- The implementation for locking is basic and it can be done using more effective lock such as ReaderWriterLockSlim. \n- Having a GetOrAdd method (sync or async) will be helpful. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoattarwork%2Fsimplecache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoattarwork%2Fsimplecache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoattarwork%2Fsimplecache/lists"}