IBackingStore Interface
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This interface defines the contract that must be implemented by all backing stores. Implementors of this method are responsible for interacting with their underlying persistence mechanisms to store and retrieve CacheItems. All methods below must guarantee Weak Exception Safety. This means that operations must complete entirely, or they must completely clean up from the failure and leave the cache in a consistent state. The mandatory cleanup process will remove all traces of the item that caused the failure, causing that item to be expunged from the cache entirely.
Namespace: Microsoft.Practices.EnterpriseLibrary.Caching
Assembly: Microsoft.Practices.EnterpriseLibrary.Caching (in Microsoft.Practices.EnterpriseLibrary.Caching.dll)
Syntax
'Declaration
<CustomFactoryAttribute(GetType(BackingStoreCustomFactory))> _
PublicInterfaceIBackingStore _
Implements IDisposable
[CustomFactoryAttribute(typeof(BackingStoreCustomFactory))]
publicinterfaceIBackingStore : IDisposable
[CustomFactoryAttribute(typeof(BackingStoreCustomFactory))]
publicinterface classIBackingStore : IDisposable
publicinterface IBackingStore extends IDisposable
Remarks
Due to the way the Caching class is implemented, implementations of this class will always be called in a thread-safe way. There is no need to make these classes thread-safe on its own.
See Also
Microsoft.Practices.EnterpriseLibrary.Caching Namespace
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |