Houdini 20.5 hapi

hapi.cacheProperty module

Identifies a memory cache

Values

hapi.cacheProperty.Current

Current memory usage in MB. Setting this to 0 invokes a cache clear.

hapi.cacheProperty.HasMin

True if it actually has a minimum size.

hapi.cacheProperty.Min

Min cache memory limit in MB.

hapi.cacheProperty.HasMax

True if it actually has a maximum size.

hapi.cacheProperty.Max

Max cache memory limit in MB.

hapi.cacheProperty.CullLevel

How aggressive to cull memory. This only works for:

  • hapi.CACHE_COP_COOK where: 0 → Never reduce inactive cache. 1 → Always reduce inactive cache.

  • hapi.CACHE_OBJ where: 0 → Never enforce the max memory limit. 1 → Always enforce the max memory limit.

  • hapi.CACHE_SOP where: 0 → When to Unload = Never When to Limit Max Memory = Never 1-2 → When to Unload = Based on Flag When to Limit Max Memory = Never 3-4 → When to Unload = Based on Flag When to Limit Max Memory = Always 5 → When to Unload = Always When to Limit Max Memory = Always

hapi