This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/python/enums/page-cache-mode.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. PageCacheMode

Defines the cache mode for the page.

from nutrient_sdk import PageCacheMode

Values

NameValueDescription
PageCacheMode.UNSPECIFIED-1Here for internal usage. Do not use.
PageCacheMode.MEMORY0Page content is cached in an allocated memory buffer.
PageCacheMode.FILE1Page content is cached in a temporary file.
PageCacheMode.FILE_NO_DELETE_ON_CLOSE2Page content is cached in a temporary file that is not deleted on closing.

Usage Example

from nutrient_sdk import PageCacheMode
# Access enum values
value = PageCacheMode.MEMORY
print(f"Value: {value}") # Output: Value: PageCacheMode.MEMORY
print(f"Integer value: {value.value}") # Output: Integer value: 0