Redis vs MemoryCache

Redis is often used as a cache, although it offers much more than just in-memory caching (for example, it supports persistence).

What are the reasons for choosing Redis rather than .NET MemoryCache ? Persistence and data types (except for key-value pairs) come to mind, but I'm sure there must be other reasons for using an additional architectural layer (i.e. Redis).

+7
caching redis memorycache
source share
1 answer

MemoryCache is built into the process, so it can only be used as a regular keystore for this process. A separate server instance of MemoryCache will be memcached .

While redis is a data structure server that can be hosted on other servers, it can interact with the network in the same way as memcached, but redis maintains a long list of complex data types and operations on them, providing logical and intelligent caching.

+8
source share

All Articles