Class CachedProvider.Settings | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023