IsolatedStorageBackingStore Class

Implementation of IBackingStore that stores its CacheItems into IsolatedStorage.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations
Assembly:  Microsoft.Practices.EnterpriseLibrary.Caching (in Microsoft.Practices.EnterpriseLibrary.Caching.dll)

Syntax

'Declaration
<ConfigurationElementTypeAttribute(GetType(IsolatedStorageCacheStorageData))> _
Public Class IsolatedStorageBackingStore _
    Inherits BaseBackingStore
[ConfigurationElementTypeAttribute(typeof(IsolatedStorageCacheStorageData))]
public class IsolatedStorageBackingStore : BaseBackingStore
[ConfigurationElementTypeAttribute(typeof(IsolatedStorageCacheStorageData))]
public ref class IsolatedStorageBackingStore : public BaseBackingStore
public class IsolatedStorageBackingStore extends BaseBackingStore

Remarks

This class assumes a tree-structured storage schema. Each named instance of an Isolated Storage area creates a separate, top-level directory in Isolated Storage. This is to allow a user to segregate different areas in Isolated Storage to allow multiple applications to use their own logically separate areas. Inside each of these areas, each CacheItem is stored in its own subdirectory, with separate files in those subdirectories representing the different pieces of a CacheItem. The item was split like this to allow for several optimizations. The first optimization is that now, the essence of a CacheItem can be restored independently of the underlying value. It is the deserialization of the value object that could conceivably be very time consuming, so by splitting it off into its own file, that deserialization process could be delayed until the value is actually needed. The second optimization is that we are now able to update the last accessed time for a CacheItem without bringing the entire CacheItem into memory, make the update, and then reserialize it.

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.BaseBackingStore
    Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IsolatedStorageBackingStore

See Also

IsolatedStorageBackingStore Members

Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations Namespace