Configuring Invalidate (Purge) NF Discovery Cache

This section describes how to configure the cache entry invalidation (purge) for the NF discovery cache.

configure 
   profile nf-pair nf-type { amf | chf | pcf | udm } 
      cache invalidation { false | true [ timeout integer ] } 
      end 

NOTES:

  • cache invalidation { false | true [ timeout integer ] } : Configures the interval and cache invalidation rule. The default value is false.

    • false : Specifies that the cache entry will never be invalidated.

    • true timeout integer : Specifies that the cache entry will be invalidated. timeout integer specifies the time period in milliseconds (ms) for controlling the usage of the expired cache entry (when NRF is unreachable). The default value is 0 ms.

The following is a sample configuration that sets the cache invalidation to false for the UDM discovery:

profile nf-pair nf-type UDM
  cache invalidation false
 end

The following is a sample configuration that sets the cache invalidation to true for the UDM discovery:

profile nf-pair nf-type UDM
  cache invalidation true timeout 10 
 end