Skip to content

Commit 197e95c

Browse files
(GH-665) Update readme
1 parent 49a0dfe commit 197e95c

File tree

9 files changed

+53
-9
lines changed

9 files changed

+53
-9
lines changed

src/DotNetToolkit.Repository.Caching.Couchbase/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,14 @@ var options = new RepositoryOptionsBuilder()
77

88
var repo = new Repository<Customer>(options);
99
```
10+
11+
# Configuration Options
12+
13+
|Action|Description|
14+
|------|-----------|
15+
|WithUserName|The user name|
16+
|WithPassword|The password|
17+
|WithBucketName|The bucket name|
18+
|WithEndPoint|The host name or IP address of the server|
19+
|WithExpiry|Expiration time|
20+
|WithSerializer|The serializer|

src/DotNetToolkit.Repository.Caching.InMemory/InMemoryCacheOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public InMemoryCacheOptions WithClock([NotNull] ISystemClock clock)
4141
}
4242

4343
/// <summary>
44-
/// Adds the giving system clock vaue to the options.
44+
/// Adds the minimum length of time between successive scans for expired items vaue to the options.
4545
/// </summary>
4646
/// <param name="expirationScanFrequency">The minimum length of time between successive scans for expired items to be added.</param>
4747
public InMemoryCacheOptions WithExpirationScanFrequency([NotNull] TimeSpan expirationScanFrequency)

src/DotNetToolkit.Repository.Caching.InMemory/InMemoryCacheProvider.cs renamed to src/DotNetToolkit.Repository.Caching.InMemory/Internal/InMemoryCacheProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace DotNetToolkit.Repository.Caching.InMemory
1+
namespace DotNetToolkit.Repository.Caching.InMemory.Internal
22
{
33
using Configuration.Caching;
44
using JetBrains.Annotations;

src/DotNetToolkit.Repository.Caching.InMemory/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@ var options = new RepositoryOptionsBuilder()
77

88
var repo = new Repository<Customer>(options);
99
```
10+
11+
# Configuration Options
12+
13+
|Action|Description|
14+
|------|-----------|
15+
|WithClock|System clock|
16+
|WithExpirationScanFrequency|Minimum length of time between successive scans for expired items|
17+
|WithExpiry|Expiration time|

src/DotNetToolkit.Repository.Caching.InMemory/RepositoryOptionsBuilderExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace DotNetToolkit.Repository.Caching.InMemory
22
{
33
using Configuration.Options;
4+
using Internal;
45
using JetBrains.Annotations;
56
using System;
67
using Utility;

src/DotNetToolkit.Repository.Caching.Memcached/MemcachedCacheOptions.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class MemcachedCacheOptions
5555
public JsonSerializerSettings SerializerSettings { get { return _serializerSettings; } }
5656

5757
/// <summary>
58-
/// Adds the giving password to the options.
58+
/// Adds the giving username to the options.
5959
/// </summary>
6060
/// <param name="username">The user name to be added.</param>
6161
public MemcachedCacheOptions WithUserName([NotNull] string username)
@@ -79,7 +79,7 @@ public MemcachedCacheOptions WithPassword([NotNull] string password)
7979
/// <summary>
8080
/// Adds the giving endpoint to the options.
8181
/// </summary>
82-
/// <param name="host">The host name to be added.</param>
82+
/// <param name="host">The host name or IP address of the server to be added.</param>
8383
/// <param name="port">The port to be added.</param>
8484
public MemcachedCacheOptions WithEndPoint([NotNull] string host, int port)
8585
{
@@ -93,7 +93,7 @@ public MemcachedCacheOptions WithEndPoint([NotNull] string host, int port)
9393
/// <summary>
9494
/// Adds the giving endpoint to the options.
9595
/// </summary>
96-
/// <param name="hostAndPort">The host and port to be added.</param>
96+
/// <param name="hostAndPort">The address and the port of the server in the format 'host:port' to be added.</param>
9797
public MemcachedCacheOptions WithEndPoint([NotNull] string hostAndPort)
9898
{
9999
_host = Guard.NotEmpty(hostAndPort, nameof(hostAndPort));
@@ -137,7 +137,6 @@ public MemcachedCacheOptions WithExpiry([NotNull] TimeSpan expiry)
137137
/// Adds the giving json serializer settings to the options.
138138
/// </summary>
139139
/// <param name="serializerSettings">The json srialzer settings to be added.</param>
140-
/// <returns>The new options instance with the given json serializer settings added.</returns>
141140
public MemcachedCacheOptions WithJsonSerializerSettings([NotNull] JsonSerializerSettings serializerSettings)
142141
{
143142
_serializerSettings = Guard.NotNull(serializerSettings, nameof(serializerSettings));

src/DotNetToolkit.Repository.Caching.Memcached/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,15 @@ var options = new RepositoryOptionsBuilder()
77

88
var repo = new Repository<Customer>(options);
99
```
10+
11+
# Configuration Options
12+
13+
|Action|Description|
14+
|------|-----------|
15+
|WithUserName|The user name|
16+
|WithPassword|The password|
17+
|WithEndPoint|The host name or IP address of the server|
18+
|WithProtocal|The protocal|
19+
|WithAuthType|The authentication type|
20+
|WithExpiry|Expiration time|
21+
|WithJsonSerializerSettings|The json serializer settings|

src/DotNetToolkit.Repository.Caching.Redis/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,16 @@ var options = new RepositoryOptionsBuilder()
77

88
var repo = new Repository<Customer>(options);
99
```
10+
11+
# Configuration Options
12+
13+
|Action|Description|
14+
|------|-----------|
15+
|WithUserName|The user name|
16+
|WithPassword|The password|
17+
|WithSsl|Specifies that SSL encryption should be used|
18+
|WithEndPoint|The host name or IP address of the server|
19+
|WithAllowAdmin|Indicates whether admin operations should be allowed|
20+
|WithDefaultDatabase|Specifies the default database to be used when calling ConnectionMultiplexer.GetDatabase() without any parameters|
21+
|WithExpiry|Expiration time|
22+
|WithJsonSerializerSettings|The json serializer settings|

src/DotNetToolkit.Repository.Caching.Redis/RedisCacheOptions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class RedisCacheOptions
6060
public JsonSerializerSettings SerializerSettings { get { return _serializerSettings; } }
6161

6262
/// <summary>
63-
/// Adds the giving password to the options.
63+
/// Adds the giving username to the options.
6464
/// </summary>
6565
/// <param name="username">The user name to be added.</param>
6666
public RedisCacheOptions WithUserName([NotNull] string username)
@@ -84,7 +84,7 @@ public RedisCacheOptions WithPassword([NotNull] string password)
8484
/// <summary>
8585
/// Adds the giving endpoint to the options.
8686
/// </summary>
87-
/// <param name="host">The host name to be added.</param>
87+
/// <param name="host">The host name or IP address of the server to be added.</param>
8888
/// <param name="port">The port to be added.</param>
8989
public RedisCacheOptions WithEndPoint([NotNull] string host, int port)
9090
{
@@ -98,7 +98,7 @@ public RedisCacheOptions WithEndPoint([NotNull] string host, int port)
9898
/// <summary>
9999
/// Adds the giving endpoint to the options.
100100
/// </summary>
101-
/// <param name="hostAndPort">The host and port to be added.</param>
101+
/// <param name="hostAndPort">The address and the port of the server in the format 'host:port' to be added.</param>
102102
public RedisCacheOptions WithEndPoint([NotNull] string hostAndPort)
103103
{
104104
_host = Guard.NotEmpty(hostAndPort, nameof(hostAndPort));

0 commit comments

Comments
 (0)