| Visual Basic (Declaration) | |
|---|---|
Public Class SimpleCacheManager Inherits CacheManagerBase Implements ICacheManager | |
| Visual Basic (Usage) | |
|---|---|
| |
| C# | |
|---|---|
public class SimpleCacheManager : CacheManagerBase, ICacheManager | |
| Managed Extensions for C++ | |
|---|---|
public __gc class SimpleCacheManager : public CacheManagerBase, ICacheManager | |
| C++/CLI | |
|---|---|
public ref class SimpleCacheManager : public CacheManagerBase, ICacheManager | |
| C# | |
|---|---|
// Creates a new ObjectContext that uses an MsSql Server as storage. | |
Thread Safety: This class is thread safe.
This class implements a simple caching algorithm. This algorithm uses internally a weak references cache that holds instances of persistent objects. The instances are hold as long in the cache as long they exist in the current AppDomain (in simple words: in the current process). If the instances have been collected by the GC they are also removed from this cache.
To have persistent objects cached by the SimpleCacheManager they need to be decorated with the SimpleCacheAttribute. All persistent without that attribute, are not cached!
System.Object
Chili.Opf3.Caching.CacheManagerBase
Chili.Opf3.Caching.SimpleCacheManager
Requirements
Namespace: Chili.Opf3.Caching
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Chili.Opf3 (in Chili.Opf3.dll)