From 6c6e9dea37d39ed06d4f63d56e4dbe58c4ee1302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20C=C3=A2mara?= Date: Sat, 30 Sep 2023 19:03:01 +0100 Subject: [PATCH] Update more Redis docs. --- docs/documentation/Redis/AttributeUsage/AttributeUsage.md | 8 ++++---- .../Redis/CacheRegistration/CacheRegistration.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/documentation/Redis/AttributeUsage/AttributeUsage.md b/docs/documentation/Redis/AttributeUsage/AttributeUsage.md index 2ce7de0..976dd6d 100644 --- a/docs/documentation/Redis/AttributeUsage/AttributeUsage.md +++ b/docs/documentation/Redis/AttributeUsage/AttributeUsage.md @@ -65,7 +65,7 @@ The value for your cache duration should follow the _HH:MM:SS_ pattern, where HH Below you can find an example of how this could exist in your configuration: ```json - "RedisConfig": { + "Redis": { "CacheSettings": { "Gorold-Payment-Attributes-RedisStuff--AnotherMethod": "01:15:30", "Gorold-Payment-Attributes-RedisStuff--SomeMethod--{param1}--{param2}--{name}": "00:20:00" @@ -101,7 +101,7 @@ So, this are the cache values taken: Sometimes you may have the need to give a group of caches the same duration, because there might be some logical grouping that you want to have. For this case, we have created cache groups. -Cache groups allow you to specify, in your attribute definition, the cache group it belongs. That is done via the _CacheGroup_ property. There must be a corresponding configuration section under your cache root configuration section (as we saw before, _RedisConfig_ was the default for that) that indicates the duration for that cache group; that should be in a section called _CacheGroupSettings_ under your root one. The duration time specificied should follow the pattern spoken about earlier, meaning following the _HH:MM:SS_ pattern +Cache groups allow you to specify, in your attribute definition, the cache group it belongs. That is done via the _CacheGroup_ property. There must be a corresponding configuration section under your cache root configuration section (as we saw before, _Redis_ was the default for that) that indicates the duration for that cache group; that should be in a section called _CacheGroupSettings_ under your root one. The duration time specificied should follow the pattern spoken about earlier, meaning following the _HH:MM:SS_ pattern Below you can find an example of cache groups in pratice, which puts the cache created on the method _SomeMethod_ inside a cache group called _GroupA_ and, according to this group's cache configuration, the cache will have a duration of 2 hours 23 minutes and 15 seconds. @@ -120,7 +120,7 @@ Below you can find an example of cache groups in pratice, which puts the cache c ### Configuration definition of cache group ```json - "RedisConfig": { + "Redis": { "CacheGroupSettings": { "GroupA" : "02:23:15" } @@ -152,7 +152,7 @@ An example of that can be seen below: ### Configuration definition of our cache duration based on our custom cache key name ```json - "RedisConfig": { + "Redis": { "CacheGroupSettings": { "MyCustomCacheName" : "04:00:00" } diff --git a/docs/documentation/Redis/CacheRegistration/CacheRegistration.md b/docs/documentation/Redis/CacheRegistration/CacheRegistration.md index 871bd02..2cd064a 100644 --- a/docs/documentation/Redis/CacheRegistration/CacheRegistration.md +++ b/docs/documentation/Redis/CacheRegistration/CacheRegistration.md @@ -26,7 +26,7 @@ The following options are, as of today, supported: ## ConfigurationSection -String that represents the section in your _appsettings.json_ where the cache configuration will be placed. By default the value here is **_"RedisConfig"_**.Example of configurations placed in such section may include the cache duration for your keys (if you end up choosing this path). Please refer to [this](../AttributeUsage/AttributeUsage.md) for more information on cache duration options. +String that represents the section in your _appsettings.json_ where the cache configuration will be placed. By default the value here is **_"Redis"_**.Example of configurations placed in such section may include the cache duration for your keys (if you end up choosing this path). Please refer to [this](../AttributeUsage/AttributeUsage.md) for more information on cache duration options. ## DefaultCacheDurationInSeconds