ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
DocumentCategory Class
DocumentCategory Properties
Json Property
MaxCacheSize Property
Script Property

# DocumentCategoryMaxCacheSize Property

Gets or sets the maximum cache size for the document category.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public uint MaxCacheSize { get; set; }

    Public Property MaxCacheSize As UInteger
    	Get
    	Set

    public:
    property unsigned int MaxCacheSize {
    	unsigned int get ();
    	void set (unsigned int value);
    }

    member MaxCacheSize : uint32 with get, set

#### Property Value

UInt32
Remarks

This property specifies the maximum number of prepared or compiled documents of the current category to be cached by script engines. Its initial value is 1024.

Each script engine or runtime maintains private caches for supported document categories. These are distinct from the caches used by document loaders.

See Also

#### Reference

DocumentCategory Class
Microsoft.ClearScript Namespace
MaxCacheSize

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft