We are using Redis for Windows and ServiceStack as client library. We are getting the following memory issue from the Redis storage. It was able recover immediately but still this issue is causing some unexpected behaviour in the application .
An empty instance uses ~ 3MB of memory. 1 Million small Keys -> String Value pairs use ~ 85MB of memory. 1 Million Keys -> Hash value, representing an object with 5 fields, use ~ 160 MB of memory.
Flush Redis Cache To Flush the Redis Cache, either the FLUSHDB or the FLUSHALL commands could be used. FLUSHDB command deletes all the keys of the DBs selected and the FLUSHALL command deletes all the keys of all the existing databases, not just the selected one. This will help to fix the issue.
Loading dataset error message happens in two cases:
The app should be able to deal with it, and retry a query or handle the failure in a graceful way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With