Class JsonCacheOptions
Contents
[
Hide
]JsonCacheOptions class
Configuration options for JSON caching in GridJs. Controls both memory (L1) and disk (L2) cache behavior.
public class JsonCacheOptions
Constructors
| Name | Description |
|---|---|
| JsonCacheOptions() | The default constructor. |
Properties
| Name | Description |
|---|---|
| CompressDisk { get; set; } | Gets/Sets whether to compress disk cache using Gzip (default: true). Takes effect when Enable = true and using default cache. |
| DiskPath { get; set; } | Gets/Sets the disk cache directory path. Takes effect when Enable = true and using default cache. Default: [FileCacheDirectory]/json_cache |
| DiskTtl { get; set; } | Gets/Sets the TTL for disk cache (default: 24 hours). Takes effect when Enable = true and using default cache. |
| Enable { get; set; } | Gets/Sets whether to enable JSON caching for faster response. When enabled, GridJs will cache the generated JSON and reuse it for subsequent requests. The default value is false. Note: You need to set Implementation to use custom cache storage. |
| EnableDisk { get; set; } | Gets/Sets whether to enable disk cache (default: true). Takes effect when Enable = true and using default cache. |
| Implementation { get; set; } | Gets/Sets the custom JSON cache implementation. If not set, GridJs will use the default memory + disk cache. |
| MaxDiskSizeMB { get; set; } | Gets/Sets the maximum disk cache size in MB (default: 500 MB). Takes effect when Enable = true and using default cache. |
| MaxMemoryEntries { get; set; } | Gets/Sets the maximum number of entries in memory cache (default: 1000). Takes effect when Enable = true and using default cache. |
| MemoryTtl { get; set; } | Gets/Sets the TTL for memory cache (default: 1 hour). Takes effect when Enable = true and using default cache. |
See Also
- namespace Aspose.Cells.GridJs
- assembly Aspose.Cells.GridJs