company logo

PropertyHandle :: ChangeCache - Change cache size

For optimizing access by key a property handle cache can be used. Usually the property handle cache is deactivated. Passing a buffer number greater than 0 will enable a cache with buffnum entries. Passing 0 will disable the cache.

When the cache is active instances are saved in the cache and are read from the cache when accessing instances by key value. Reading by index will not access the cache. Hence the cache should be activated for random key access, only.

Using the cache in Write mode will lock all instances buffered in the cache. Updating an instance that is stored in the cache can be stored immediately using the save function. Changing the selection in the buffer will store the instance to the cache, only.

Return value:  Success ( logical  )

Implementation details

logical PropertyHandle  :: ChangeCache ( int16 buffnum=AUTO )
  • buffnum - Number of instance buffers to be used Default: AUTO