PostSharp6.5//Caching/Caching Back-Ends

Caching Back-Ends

The CacheAttribute can be used with different caching frameworks or caching servers. This concept is called a caching backend. Caching backends are represented by the CachingBackend abstract class. You can use an existing implementation or implement your own caching backend.

In this chapter

Section

Description

Using In-Memory Cache

This article shows how to store cached values using the MemoryCache class or the IMemoryCache abstraction.

Using Redis Cache

This article shows how to store cached values using Redis and using a combination of Redis and MemoryCache class.

See Also