Object Cache store on File System


how store object cache on file system?

what problem want resolve storing cache items file?

objectcache not directly store cached items file system. implementation .net provides memorycache store items in memory. can use serialization store serializable types file system , if like, maybe build own objectcache derived class use cache.

or can use cacheitempolicy.removedcallback notifies when item removed cache and serialize file. of course in case need implement logic read item file, if 1 is removed memory cache. provides logic load instance cache, if removed cache because of memory pressure or timeout, serialize in file. when instance requested cache check if 1 is serialized file, deserialize insert to cache and return. can implemented hiding caching logic behind kind of cache manager.



Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'