Skip to content

Commit 4f599ac

Browse files
authored
Merge pull request #129 from mzorec/master
Improves documentation.
2 parents 94ecdf1 + 7b6e077 commit 4f599ac

File tree

10 files changed

+43
-43
lines changed

10 files changed

+43
-43
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public class Startup
9999
}
100100
```
101101

102-
### Step 3 : Write code in you controller
102+
### Step 3 : Write code in your controller
103103

104104
```csharp
105105
[Route("api/[controller]")]

docs/AspectCore.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Caching Intercept via AspectCore
22

3-
EasyCaching.Interceptor.AspectCore is a caching intercept library which is based on **EasyCaching.Core** and **AspectCore**.
3+
EasyCaching.Interceptor.AspectCore is a caching interceptor library which is based on **EasyCaching.Core** and **AspectCore**.
44

5-
When using this library, it can help us to separate the operation between business logic and caching logic.
5+
When using this library, it can help us to separate operations between business logic and caching logic.
66

77
# How to use ?
88

9-
Before using **EasyCaching.Interceptor.AspectCore**, we should specify which type of caching you want to use!! In this document, we will use EasyCaching.InMemory for example.
9+
Before using **EasyCaching.Interceptor.AspectCore**, you should specify which type of caching you want to use!! In following example, we will use EasyCaching.InMemory.
1010

1111
## 1. Install the package via Nuget
1212

@@ -20,15 +20,15 @@ Install-Package EasyCaching.InMemory
2020

2121
### 2.1 Define the interface
2222

23-
We need to add `EasyCachingAble`,`EasyCachingPut` or `EasyCachingEvict` on the methods that we want to simplify the caching operation.
23+
We need to add `EasyCachingAble`,`EasyCachingPut` or `EasyCachingEvict` on the methods where we want to simplify the caching operations.
2424

25-
The following unordered list shows you what the attribute will affect the caching.
25+
The following list shows you which attributes you can use for caching:
2626

2727
- EasyCachingAble , Read from cached items
2828
- EasyCachingPut , Update the cached item
2929
- EasyCachingEvict , Remove one cached item or multi cached items
3030

31-
There are some properties that we should know
31+
These properties can be applied on attributes
3232

3333
Property | Description | Apply
3434
---|---|---
@@ -39,9 +39,9 @@ Expiration | To specify the expiration of your cache item,the unit is second |
3939
IsAll | Whether remove all the cached items start with the CacheKeyPrefix | EasyCachingEvict only
4040
IsBefore | Remove the cached item before method excute or after method excute | EasyCachingEvict only
4141

42-
Here is a easy sample to show you how to use.
42+
how to use example:
4343

44-
Defining a regular interface at first.
44+
Define interface first.
4545

4646
```csharp
4747
public interface IDemoService

docs/CSRedis.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Install-Package EasyCaching.CSRedis
1616

1717
### 2. Config in Startup class
1818

19-
There are two options you can choose when you config the caching provider.
19+
There are two way's how you can configure caching provider.
2020

21-
First of all, we can config by C# code.
21+
By C# code:
2222

2323
```csharp
2424
public class Startup
@@ -47,7 +47,7 @@ public class Startup
4747
}
4848
```
4949

50-
What's more, we also can read the configuration from `appsettings.json`.
50+
Alternatively you can store configuration in the `appsettings.json`.
5151

5252
```cs
5353
public class Startup
@@ -67,7 +67,7 @@ public class Startup
6767
}
6868
```
6969

70-
And what we add in `appsettings.json` are as following:
70+
`appsettings.json` example:
7171

7272
```JSON
7373
"easycaching": {
@@ -87,7 +87,7 @@ And what we add in `appsettings.json` are as following:
8787

8888
### 3. Call the IEasyCachingProvider
8989

90-
The following code show how to use EasyCachingProvider in ASP.NET Core Web API.
90+
Following code shows how to use EasyCachingProvider in ASP.NET Core Web API.
9191

9292
```csharp
9393
[Route("api/[controller]")]

docs/Castle.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Caching Intercept via Castle
22

3-
EasyCaching.Interceptor.Castle is a caching intercept library which is based on **EasyCaching.Core** and **Castle.Core**.
3+
EasyCaching.Interceptor.Castle is a caching interceptor library which is based on **EasyCaching.Core** and **Castle.Core**.
44

55
When using this library, it can help us to separate the operation between business logic and caching logic.
66

77
# How to use ?
88

9-
Before using **EasyCaching.Interceptor.Castle**, we should specify which type of caching you want to use!! In this document, we will use EasyCaching.InMemory for example.
9+
Before using **EasyCaching.Interceptor.Castle**, we should specify which type of caching you want to use!! In this example, we will use EasyCaching.InMemory.
1010

1111
## 1. Install the package via Nuget
1212

@@ -20,15 +20,15 @@ Install-Package EasyCaching.InMemory
2020

2121
### 2.1 Define the interface
2222

23-
We need to add `EasyCachingAble`,`EasyCachingPut` or `EasyCachingEvict` on the methods that we want to simplify the caching operation.
23+
We need to add `EasyCachingAble`,`EasyCachingPut` or `EasyCachingEvict` on the methods where we want to simplify the caching operation.
2424

25-
The following unordered list shows you what the attribute will affect the caching.
25+
The following list shows you which attributes you can use for caching:
2626

2727
- EasyCachingAble , Read from cached items
2828
- EasyCachingPut , Update the cached item
2929
- EasyCachingEvict , Remove one cached item or multi cached items
3030

31-
There are some properties that we should know
31+
These properties can be applied on attributes
3232

3333
Property | Description | Apply
3434
---|---|---
@@ -39,9 +39,9 @@ Expiration | To specify the expiration of your cache item,the unit is second |
3939
IsAll | Whether remove all the cached items start with the CacheKeyPrefix | EasyCachingEvict only
4040
IsBefore | Remove the cached item before method excute or after method excute | EasyCachingEvict only
4141

42-
Here is a easy sample to show you how to use.
42+
how to use example:
4343

44-
Defining a regular interface at first.
44+
Define interface first.
4545

4646
```csharp
4747
public interface IDemoService

docs/Hybrid.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
HybridCachingProvider will combine local caching and distributed caching together.
44

5-
And the most important problem is to keep the newest local cached value.
5+
The most important problem that this caching provider solves is that it keeps the newest local cached value.
66

7-
When we modify a cached value, the provider will send a message to `EasyCaching Bus` so that we can notify other Apps to remove the old value.
7+
When we modify a cached value, the provider will send a message to `EasyCaching Bus` so that it can notify other Apps to remove the old value.
88

99
The following image shows how it runs.
1010

@@ -66,7 +66,7 @@ public class Startup
6666

6767
### 3. Call `IHybridCachingProvider`
6868

69-
The following code show how to use EasyCachingProvider in ASP.NET Core Web API.
69+
Following code shows how to use EasyCachingProvider in ASP.NET Core Web API.
7070

7171
```csharp
7272
[Route("api/[controller]")]

docs/In-Memory.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# DefaultInMemoryCachingProvider
22

3-
EasyCaching.InMemory is a in-memory caching lib which is based on **EasyCaching.Core**.
3+
EasyCaching.InMemory is an in-memory caching lib which is based on **EasyCaching.Core**.
44

5-
When you use this lib , it means that you will handle the memory of current server . As usual , we named it as local caching .
5+
When you use this lib, it means that you will handle the memory of current server. As usual, we named it as local caching.
66

77
## How to use ?
88

@@ -14,9 +14,9 @@ Install-Package EasyCaching.InMemory
1414

1515
### 2. Config in Startup class
1616

17-
There are two options you can choose when you config the caching provider.
17+
There are two way's how you can configure caching provider.
1818

19-
First of all, we can config by C# code.
19+
By C# code:
2020

2121
```csharp
2222
public class Startup
@@ -57,7 +57,7 @@ public class Startup
5757
}
5858
```
5959

60-
What's more, we also can read the configuration from `appsettings.json`.
60+
Alternatively you can store configuration in the `appsettings.json`.
6161

6262
```csharp
6363
public class Startup
@@ -78,7 +78,7 @@ public class Startup
7878
}
7979
```
8080

81-
And what we add in `appsettings.json` are as following:
81+
`appsettings.json` example:
8282

8383
```JSON
8484
"easycaching": {
@@ -97,7 +97,7 @@ And what we add in `appsettings.json` are as following:
9797

9898
### 3. Call the EasyCachingProvider
9999

100-
The following code show how to use EasyCachingProvider in ASP.NET Core Web API.
100+
Following code shows how to use EasyCachingProvider in ASP.NET Core Web API.
101101

102102
```csharp
103103
[Route("api/[controller]")]

docs/Memcached.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
EasyCaching.Memcached is a memcached caching lib which is based on **EasyCaching.Core** and **[EnyimMemcachedCore](https://github.com/cnblogs/EnyimMemcachedCore)**.
44

5-
When you use this lib , it means that you will handle the data of your memcached servers . As usual , we will use it as distributed caching .
5+
When you use this lib, it means that you will handle the data of your memcached servers. As usual, we will use it as distributed caching.
66

77
# How to use ?
88

docs/ProviderFactory.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# EasyCachingProviderFactory
22

3-
`EasyCachingProviderFactory` is a new feature after v0.4.0 which provides a factory to get providers
3+
`EasyCachingProviderFactory` is a new feature which was implemented in v0.4.0. It provides a factory to get providers
44
that we register in startup.
55

66
# Why ?
@@ -14,9 +14,9 @@ After releasing v0.4.0 of EasyCaching, we can deal with this scenario.
1414

1515
This usage of `EasyCachingProviderFactory` is similar with `HttpClientFactory`.
1616

17-
There are two types of providers(`IEasyCachingProvider` and `IRedisCachingProvider`) can use `EasyCachingProviderFactory` to create.
17+
There are two types of providers(`IEasyCachingProvider` and `IRedisCachingProvider`) that `EasyCachingProviderFactory` can create.
1818

19-
Here use two InMemory caching provders and two Redis caching providers to show.
19+
Following examples uses two InMemory caching provders and two Redis caching providers.
2020

2121
## 1. Install the packages via Nuget
2222

@@ -58,7 +58,7 @@ public void ConfigureServices(IServiceCollection services)
5858

5959
### 3. Call the IEasyCachingProviderFactory
6060

61-
The following code show how to use IEasyCachingProviderFactory in ASP.NET Core Web API.
61+
Following code shows how to use IEasyCachingProviderFactory in ASP.NET Core Web API.
6262

6363
```csharp
6464
[Route("api/[controller]")]

docs/Redis.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
EasyCaching.Redis is a redis caching lib which is based on **EasyCaching.Core** and **StackExchange.Redis**.
44

5-
When you use this lib , it means that you will handle the data of your redis servers . As usual , we will use it as distributed caching .
5+
When you use this lib, it means that you will handle the data of your redis servers. As usual, we will use it as distributed caching.
66

77
# How to use ?
88

@@ -16,9 +16,9 @@ Install-Package EasyCaching.Redis
1616

1717
### 2. Config in Startup class
1818

19-
There are two options you can choose when you config the caching provider.
19+
There are two way's how you can configure caching provider.
2020

21-
First of all, we can config by C# code.
21+
By C# code:
2222

2323
```csharp
2424
public class Startup
@@ -41,7 +41,7 @@ public class Startup
4141
}
4242
```
4343

44-
What's more, we also can read the configuration from `appsettings.json`.
44+
Alternatively you can store configuration in the `appsettings.json`.
4545

4646
```cs
4747
public class Startup
@@ -61,7 +61,7 @@ public class Startup
6161
}
6262
```
6363

64-
And what we add in `appsettings.json` are as following:
64+
`appsettings.json` example:
6565

6666
```JSON
6767
"easycaching": {
@@ -90,7 +90,7 @@ And what we add in `appsettings.json` are as following:
9090

9191
### 3. Call the IEasyCachingProvider
9292

93-
The following code show how to use EasyCachingProvider in ASP.NET Core Web API.
93+
Following code shows how to use EasyCachingProvider in ASP.NET Core Web API.
9494

9595
```csharp
9696
[Route("api/[controller]")]

docs/SQLite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
SQLite is another choice of local caching.
44

5-
There are two scenarios are good for us to use SQLite as our local caching!
5+
There are two scenarios where SQLite is recommended to use as our local caching!
66

77
1. Persisted caching item.
88
2. Rebuild caching item.

0 commit comments

Comments
 (0)