YetaWF.Caching Package Documentation


YetaWF.Modules.Caching.DataProvider.StaticSmallObjectLocalDataProvider Class

A local static cache implementation (in-memory ONLY) for a single instance (really not shared) for SMALL objects. This is typically used for small objects such as grid/propertylist definition files.

The cache can be cleared explicitly using the Control Panel and there is a configurable cache expiration time after which the entry is removed (see AppSettings.json YetaWF_Caching:SmallObjectCacheDuration defined in minutes. 0 no expiration, -1 don't cache, any other value is the cache duration in minutes.

In development/debug objects are not cached, for release mode the default is caching that doesn't expire.

Namespace: YetaWF.Modules.Caching.DataProvider
Assembly: YetaWF.Caching



public class StaticSmallObjectLocalDataProvider : YetaWF.Core.IO.ICacheDataProvider,




PublicAddAsyncAdds an object to the cache.
PublicClearAllAsyncClears the cache completely.
PublicDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicGetAsyncRetrieves a cached object.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicStaticGetProviderStaticSmallObjectLocalDataProvider factory.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicRemoveAsyncRemoves the cached object.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

See Also YetaWF.Caching PackageYetaWF.Core