Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
omid-ahmadpour authored Apr 10, 2021
1 parent 77e4c95 commit 1726076
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions README.md
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)

0 comments on commit 1726076

Please sign in to comment.