Class CachedProvider.Settings
Settings object used to initialize the cache provider.
Inheritance
System.Object
CachedProvider.Settings
Namespace: UnityEngine.ResourceManagement.ResourceProviders
Syntax
[Serializable]
public class Settings
Properties
InternalProviderData
The initialization data for the internal provider.
Declaration
public ObjectInitializationData InternalProviderData { get; set; }
Property Value
Type | Description |
---|---|
ObjectInitializationData |
maxLruAge
The time, in seconds, to hold on to items in the cache. This value scales inversely to how full the LRU is. The last item will take this long to be removed. If set to 0, items are not automatically removed.
Declaration
public float maxLruAge { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
maxLruCount
The maximum number of items to hold in the LRU. If set to 0, the LRU is not used and items will be released as soon as the reference count drops to 0.
Declaration
public int maxLruCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |