Skip to content

Commit ea682cc

Browse files
committed
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
2 parents c48c187 + 48591fc commit ea682cc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

articles/azure-cache-for-redis/cache-management-faq.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,18 @@ sections:
3737
- [StackExchange.Redis best practices](#stackexchangeredis-best-practices)
3838
- [Configuration and concepts](#configuration-and-concepts)
3939
- [Performance testing](#performance-testing)
40+
- [StackExchange.Redis best practices](#stackexchangeredis-best-practices)
41+
- [Configuration and concepts](#configuration-and-concepts)
42+
- [Performance testing](#performance-testing)
4043
4144
### StackExchange.Redis best practices
4245
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.
4352
- Set `AbortConnect` to false, then let the ConnectionMultiplexer reconnect automatically.
4453
- Use a single, long-lived `ConnectionMultiplexer` instance rather than creating a new connection for each request.
4554
- 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

Comments
 (0)