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
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/cache-troubleshoot-data-loss.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Learn how to resolve data-loss problems with Azure Cache for Redis,
5
5
6
6
7
7
ms.topic: conceptual
8
-
ms.date: 12/01/2021
8
+
ms.date: 03/05/2025
9
9
---
10
10
11
11
# Troubleshoot data loss in Azure Cache for Redis
@@ -58,8 +58,6 @@ expired_keys:46583
58
58
db0:keys=3450,expires=2,avg_ttl=91861015336
59
59
```
60
60
61
-
This resource provides details on using `keyspace` notifications or `MONITOR` to debug these types of issues. For information about using diagnostic metrics to see if there's a correlation between when the key went missing and a spike in expired keys, see the Appendix of [Debugging Redis Keyspace Misses](https://gist.github.com/JonCole/4a249477142be839b904f7426ccccf82#appendix).
62
-
63
61
### Key eviction
64
62
65
63
Azure Cache for Redis requires memory space to store data. It purges keys to free up available memory when necessary. When the **used_memory** or **used_memory_rss** values in the [INFO](https://redis.io/commands/info) command approach the configured **maxmemory** setting, Azure Cache for Redis starts evicting keys from memory based on [cache policy](https://redis.io/topics/lru-cache).
@@ -122,11 +120,10 @@ Caches in the Standard and Premium tiers offer much higher resiliency against da
122
120
123
121
Consider using [Redis data persistence](https://redis.io/topics/persistence) and [geo-replication](./cache-how-to-geo-replication.md) to improve protection of your data against these infrastructure failures.
124
122
125
-
## Additional information
126
-
127
-
These articles provide more information on avoiding data loss:
123
+
## Related Content
128
124
129
125
-[Troubleshoot Azure Cache for Redis server-side issues](cache-troubleshoot-server.md)
130
126
-[Choosing the right tier](cache-overview.md#choosing-the-right-tier)
131
127
-[Monitor Azure Cache for Redis](monitor-cache.md)
132
128
-[How can I run Redis commands?](cache-development-faq.yml#how-can-i-run-redis-commands-)
129
+
-[Sample code for examining keyspace notifications](https://gist.github.com/JonCole/0d6205b4771e5c803bc1e085517484a2#file-rediskeyspacenotificationsexample-cs)
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/managed-redis/managed-redis-troubleshoot-data-loss.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.service: azure-managed-redis
7
7
ms.custom:
8
8
- ignite-2024
9
9
ms.topic: conceptual
10
-
ms.date: 11/15/2024
10
+
ms.date: 03/05/2025
11
11
---
12
12
13
13
# Troubleshoot data loss in Azure Managed Redis (preview)
@@ -59,7 +59,7 @@ expired_keys:46583
59
59
db0:keys=3450,expires=2,avg_ttl=91861015336
60
60
```
61
61
62
-
62
+
You can examine the diagnostic metrics for your cache to see if there's a correlation between when the key went missing and a spike in evicted keys.
63
63
64
64
### Key eviction
65
65
@@ -73,8 +73,6 @@ You can monitor the number of evicted keys by using the [INFO](https://redis.io/
73
73
evicted_keys:13224
74
74
```
75
75
76
-
You can also look at diagnostic metrics for your cache, to see if there's a correlation between when the key went missing and a spike in evicted keys. See the Appendix of [Debugging Redis Keyspace Misses](https://gist.github.com/JonCole/4a249477142be839b904f7426ccccf82#appendix) for information about using keyspace notifications or **MONITOR** to debug these types of issues.
77
-
78
76
### Key deletion
79
77
80
78
Redis clients can issue the [DEL](https://redis.io/commands/del) or [HDEL](https://redis.io/commands/hdel) command to explicitly remove keys from Azure Managed Redis. You can track the number of delete operations by using the [INFO](https://redis.io/commands/info) command. If **DEL** or **HDEL** commands have been called, they'll be listed in the `Commandstats` section.
@@ -118,11 +116,10 @@ Redis is an in-memory data store. Data is kept on the physical or virtual machin
118
116
119
117
Consider using [Redis data persistence](https://redis.io/topics/persistence) and [geo-replication](../cache-how-to-geo-replication.md) to improve protection of your data against these infrastructure failures.
120
118
121
-
## Additional information
122
-
123
-
These articles provide more information on avoiding data loss:
0 commit comments