Skip to content

Commit 999ca88

Browse files
committed
minor change
1 parent 45da2c4 commit 999ca88

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,4 +360,5 @@ MigrationBackup/
360360
.ionide/
361361

362362
# Fody - auto-generated XML schema
363-
FodyWeavers.xsd
363+
FodyWeavers.xsd
364+
.vercel

CacheSample.WebApi/Cache/Cache.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@ namespace CacheSample.WebApi.Cache
44
{
55
public static class CacheSelector
66
{
7-
public static Redis GetRedis()
8-
{
9-
return new Redis();
10-
}
7+
public static Redis GetRedis() => new Redis();
118

12-
public static Memory GetMemory()
13-
{
14-
return new Memory();
15-
}
9+
public static Memory GetMemory() => new Memory();
1610
}
1711
}

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,21 @@
77
![image](https://user-images.githubusercontent.com/22874642/177662439-8d442cab-f901-4bac-91b9-b97533cc52db.png)
88

99
You can add your custom DB Provider (MongoDB, SQL Server, PostgreSQL, etc) and adapt it as necessary
10+
11+
Go to the file "appsettings.json" (aspnet-core-net-6-api-cache/CacheSample.WebApi/appsettings.json) and replace your redis connection string
12+
13+
```
14+
{
15+
"Logging": {
16+
"LogLevel": {
17+
"Default": "Information",
18+
"Microsoft.AspNetCore": "Warning"
19+
}
20+
},
21+
"AllowedHosts": "*",
22+
"Redis": {
23+
"ConnectionString": "your_host:your_port,password=your_password"
24+
}
25+
}
26+
27+
```

0 commit comments

Comments
 (0)