Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Example of a custom cache provider for System.Runtime.Caching.ObjectCache.Host

$
0
0

Hello to all,

Apparently there is a way to implement a custom provider, or host, for the System.Runtime.Caching.ObjectCache object.  This seems to take the form of a System.IServiceProvider.  However, this interface has only one method, which is GetService. As such, I cannot determine which methods I need to implement within the service itself to serialize cached objects, for instance, to a SQL Server database.  

Is there an example of such functionality?  I have not yet found one after hours of searching.

Thank you!

Dan


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>