You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'fxl---UUF-Azure-Cache-for-Redis-management-FAQs--ado-289265' of https://github.com/flang-msft/azure-docs-pr into fxl---UUF-Azure-Cache-for-Redis-management-FAQs--ado-289265
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/cache-management-faq.yml
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,9 +37,18 @@ sections:
37
37
- [StackExchange.Redis best practices](#stackexchangeredis-best-practices)
38
38
- [Configuration and concepts](#configuration-and-concepts)
39
39
- [Performance testing](#performance-testing)
40
+
- [StackExchange.Redis best practices](#stackexchangeredis-best-practices)
41
+
- [Configuration and concepts](#configuration-and-concepts)
42
+
- [Performance testing](#performance-testing)
40
43
41
44
### StackExchange.Redis best practices
42
45
46
+
- Set `AbortConnect` to false, then let the ConnectionMultiplexer reconnect automatically.
47
+
- Use a single, long-lived `ConnectionMultiplexer` instance rather than creating a new connection for each request.
48
+
- Redis works best with smaller values, so consider chopping up bigger data into multiple keys. In [this Redis discussion](https://groups.google.com/forum/#!searchin/redis-db/size/redis-db/n7aa2A4DZDs/3OeEPHSQBAAJ), 100 kb is considered large. For more information, see [Best practices development](cache-best-practices-development.md#consider-more-keys-and-smaller-values).
49
+
- Configure your [ThreadPool settings](#important-details-about-threadpool-growth) to avoid timeouts.
50
+
- Use at least the default connectTimeout of 5 seconds. This interval gives StackExchange.Redis sufficient time to re-establish the connection if there's a network blip.
51
+
- Be aware of the performance costs associated with different operations you're running. For instance, the `KEYS` command is an O(n) operation and should be avoided. The [redis.io site](https://redis.io/commands/) has details around the time complexity for each operation that it supports. Select each command to see the complexity for each operation.
43
52
- Set `AbortConnect` to false, then let the ConnectionMultiplexer reconnect automatically.
44
53
- Use a single, long-lived `ConnectionMultiplexer` instance rather than creating a new connection for each request.
45
54
- Redis works best with smaller values, so consider chopping up bigger data into multiple keys. In [this Redis discussion](https://groups.google.com/forum/#!searchin/redis-db/size/redis-db/n7aa2A4DZDs/3OeEPHSQBAAJ), 100 kb is considered large. For more information, see [Best practices development](cache-best-practices-development.md#consider-more-keys-and-smaller-values).
0 commit comments