When should I use udf-clear-cache?

FAQ - When should I use udf-clear-cache?

Detail

UDF files are cached on the server to improve performance. This prevents the server from reopening and recompiling the UDF unnecessarily. There may be a need to manually clear this cache with the udf-clear-cache command. This article will dive further into the use cases.

Running udf-clear-cache

The following command can be used to manually clear UDF cache:

asinfo -v udf-clear-cache:

Conditions for manually Clearing the cache.

The UDF cache will automatically be cleared when a UDF file is updated. That said, there are conditions that requires manual clearing of the cache:

  • If there exist interdependencies among the updated UDF. This could lead to an invalid cache and requires a clearing of the cache.

  • If the UDF is in use while being updated. This could also lead to an invalid cache and requires a clearing of the cache.

Keywords

UDF CACHE

Timestamp

March 2021

© 2021 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.