Ns cache size

From AOLserver Wiki
Revision as of 01:50, 27 October 2009 by Akhassin (talk | contribs) (New page: '''NAME''' : '''ns_cache_size''' − Returns maximum and current size of a cache '''SYNOPSIS''' : '''ns_cache_size''' ''cachename'' '''DESCRIPTION''' : Returns two space-separated number...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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