unreal.DataRegistryCachePolicy

class unreal.DataRegistryCachePolicy(cache_is_always_volatile=False, use_curve_table_cache_version=False, min_number_kept=0, max_number_kept=0, force_keep_seconds=0.0, force_release_seconds=0.0)

Bases: unreal.StructBase

Rules to use when deciding how to unload registry items and related assets

C++ Source:

  • Plugin: DataRegistry

  • Module: DataRegistry

  • File: DataRegistryTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • cache_is_always_volatile (bool): [Read-Write] If this is true, the cache is always considered volatile when returning EDataRegistryCacheResult

  • force_keep_seconds (float): [Read-Write] Any item accessed within this amount of seconds is never unloaded

  • force_release_seconds (float): [Read-Write] Any item not accessed within this amount of seconds is always unloaded

  • max_number_kept (int32): [Read-Write] Maximum number of items to keep loaded, 0 means infinite

  • min_number_kept (int32): [Read-Write] Will not release items if fewer then this number loaded, 0 means infinite

  • use_curve_table_cache_version (bool): [Read-Write] If this is true, the cache version is synchronized with the global CurveTable cache version

property cache_is_always_volatile

[Read-Write] If this is true, the cache is always considered volatile when returning EDataRegistryCacheResult

Type

(bool)

property force_keep_seconds

[Read-Write] Any item accessed within this amount of seconds is never unloaded

Type

(float)

property force_release_seconds

[Read-Write] Any item not accessed within this amount of seconds is always unloaded

Type

(float)

property max_number_kept

[Read-Write] Maximum number of items to keep loaded, 0 means infinite

Type

(int32)

property min_number_kept

[Read-Write] Will not release items if fewer then this number loaded, 0 means infinite

Type

(int32)

property use_curve_table_cache_version

[Read-Write] If this is true, the cache version is synchronized with the global CurveTable cache version

Type

(bool)