{"id":19414913,"url":"https://github.com/omid-ahmadpour/polycache","last_synced_at":"2025-04-24T12:32:19.384Z","repository":{"id":52834694,"uuid":"355666315","full_name":"omid-ahmadpour/PolyCache","owner":"omid-ahmadpour","description":"A Distributed Cache manager package for .Net Core Projects.","archived":false,"fork":false,"pushed_at":"2024-05-08T16:35:33.000Z","size":134,"stargazers_count":17,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-08T17:45:26.644Z","etag":null,"topics":["caching-library","distributed-cache","dotnet","dotnet-core","memory-cache","redis-ca","sqlserver-cache"],"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/omid-ahmadpour.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":"2021-04-07T19:54:19.000Z","updated_at":"2024-07-16T13:26:50.339Z","dependencies_parsed_at":"2024-04-16T19:47:15.424Z","dependency_job_id":"4aa546ee-2ab2-4974-878b-7c59fddd63c5","html_url":"https://github.com/omid-ahmadpour/PolyCache","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omid-ahmadpour%2FPolyCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omid-ahmadpour%2FPolyCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omid-ahmadpour%2FPolyCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omid-ahmadpour%2FPolyCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omid-ahmadpour","download_url":"https://codeload.github.com/omid-ahmadpour/PolyCache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223954370,"owners_count":17231187,"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":["caching-library","distributed-cache","dotnet","dotnet-core","memory-cache","redis-ca","sqlserver-cache"],"created_at":"2024-11-10T12:40:55.924Z","updated_at":"2024-11-10T12:40:56.568Z","avatar_url":"https://github.com/omid-ahmadpour.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PolyCache - Distributed Cache Manager for .Net Core Projects\n\nPolyCache is a powerful distributed cache manager package designed specifically for .Net Core projects. It allows you to efficiently manage and store cached data, enhancing the performance of your applications. If you find PolyCache helpful for your project or learning experience, consider giving it a star ⭐. Your support is appreciated!\n\n## Installation\n\nTo get started with PolyCache, you can easily install it via NuGet Package Manager:\n\n```shell\n\u003e Install-Package PolyCache\n```\n\n## Getting Started\n\nTo use PolyCache, you need to register it in your application's Startup class by adding the following code to the `ConfigureServices` method:\n\n```csharp\nservices.AddPolyCache(Configuration);\n```\n\n## Configuration\n\nPolyCache provides various options for configuring your distributed cache. You can choose from the following cache types:\n\n- Redis\n- Memory\n- SQL Server\n\n### DistributedCacheConfig\n\n#### DistributedCacheType\n\nSelect the cache implementation you want to use from the available options.\n\n#### SchemaName (optional)\n\nThis setting is only required when using SQL Server as your cache storage.\n\n#### TableName (optional)\n\nSpecify the SQL Server database table name where your cache data will be stored.\n\nTo configure these options, add the following configuration to your `appsettings.json` file:\n\n```json\n\"CacheConfig\": {\n    \"DefaultCacheTime\": 60,\n    \"ShortTermCacheTime\": 3,\n    \"BundledFilesCacheTime\": 120\n},\n\"DistributedCacheConfig\": {\n    \"DistributedCacheType\": \"redis\",\n    \"Enabled\": true,\n    \"ConnectionString\": \"127.0.0.1:6379,ssl=False\",\n    \"SchemaName\": \"dbo\",\n    \"TableName\": \"DistributedCache\"\n}\n```\n\n## Usage\n\nOnce you've configured PolyCache, you can inject the `IStaticCacheManager` interface into your application and use it to cache data efficiently. A sample project that demonstrates the usage of PolyCache is available in our [GitHub repository](https://github.com/omid-ahmadpour/PolyCache/tree/master/Sample).\n\n## Setting Up Redis with Docker Compose\n\nIf you plan to use Redis as your cache storage, follow these steps to set it up with Docker Compose:\n\n1. Install Docker on your operating system.\n\n2. Download the `redis-docker-compose.yml` file from the sample project and place it in a convenient directory on your system.\n\n3. Open your terminal as an administrator.\n\n4. Navigate to the directory where you placed the `redis-docker-compose.yml` file.\n\n5. Run the following command to start Redis in a Docker container:\n\n   ```shell\n   docker-compose -f redis-docker-compose.yml up\n   ```\n\n6. Redis is now ready to use within your Docker environment.\n\nEnjoy the benefits of PolyCache in your .Net Core projects and optimize your application's performance with ease!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomid-ahmadpour%2Fpolycache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomid-ahmadpour%2Fpolycache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomid-ahmadpour%2Fpolycache/lists"}