ns_cache_stats

Return cache statistics.

Syntax

ns_cache_stats cache ?arrayvar?

Description

If no arrayvar is specified, this function returns cache statistics in the following format:
    "entries: #   flushed: #   hits: #   misses: #   hitrate: #"

If an arrayvar is specified, this fills the array with the elements: entries, flushed, hits, misses, and hitrates. The entries are populated with their corresponding values.

See the nstelemetry.adp utility for an example of how ns_cache_stats is used.