Ns cache size

From AOLserver Wiki
Jump to: navigation, search

NAME

ns_cache_size − Returns maximum and current size of a cache

SYNOPSIS

ns_cache_size cachename

DESCRIPTION

Returns two space-separated numbers, the defined maximum size and the current size of a given cache. The size of the cache is the sum of the sizes of all the values in the cache; keys do not count toward a cache's size. If inserting a value into the cache makes the size of the cache exceed its maximum, then cache entries are evicted starting with the least-recently used entry until the size is below the maximum size (or until only the new value remains in the cache).

SEE ALSO

ns_cache

Category Documentation - Category Core Tcl API