-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77e4c95
commit 1726076
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,48 @@ | ||
# PolyCache | ||
Redis Cache NuGet package | ||
|
||
## Installing PolyCache | ||
|
||
```ruby | ||
> Install-Package PolyCache | ||
``` | ||
|
||
## Registering PolyCache | ||
### in Startup -> ConfigureServices | ||
|
||
```ruby | ||
> services.AddPolyCache(Configuration); | ||
``` | ||
|
||
# DistributedCacheConfig | ||
|
||
## DistributedCacheType You can choose one of the implementations: | ||
### Memory | ||
### SQL Server | ||
### Redis | ||
|
||
## SchemaName (optional) | ||
#### This setting is only used in conjunction with SQL Server. | ||
|
||
## TableName (optional) | ||
#### This setting is only used in conjunction with SQL Server. SQL Server database name. | ||
|
||
## Put the following configuration in appsettings.json. | ||
``` | ||
CacheConfig": { | ||
"DefaultCacheTime": 60, | ||
"ShortTermCacheTime": 3, | ||
"BundledFilesCacheTime": 120 | ||
}, | ||
"DistributedCacheConfig": { | ||
"DistributedCacheType": "redis", | ||
"Enabled": true, | ||
"ConnectionString": "127.0.0.1:6379,ssl=False", | ||
"SchemaName": "dbo", | ||
"TableName": "DistributedCache" | ||
} | ||
``` | ||
|
||
### The source of a project that used NeoBus is also included. | ||
|
||
> [Sample For Use PolyCache](https://github.com/omid-ahmadpour/PolyCache/tree/master/Sample) |