PageCacheMode
Defines the cache mode for the page.
from nutrient import PageCacheModeValues
| Name | Value | Description |
|---|---|---|
PageCacheMode.UNSPECIFIED | -1 | Here for internal usage. Do not use. |
PageCacheMode.MEMORY | 0 | Page content is cached in an allocated memory buffer. |
PageCacheMode.FILE | 1 | Page content is cached in a temporary file. |
PageCacheMode.FILE_NO_DELETE_ON_CLOSE | 2 | Page content is cached in a temporary file that is not deleted on closing. |
Usage Example
from nutrient import PageCacheMode
# Access enum valuesvalue = PageCacheMode.MEMORYprint(f"Value: {value}") # Output: Value: PageCacheMode.MEMORYprint(f"Integer value: {value.value}") # Output: Integer value: 0