company logo

Property :: changeCache - Change cache size

The function allows activating or deactivation property handle cache. Passing a buffer number greater than 0 will enable a cache with iBufferSize 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 property handle will store the instance to the cache, only.

Implementation details

Property  :: changeCache ( int32 iBufferSize )
  • iBufferSize - Number of instance buffers

    This is the maximum number of instance buffers.