Difference between revisions of "Ns cache names"

From AOLserver Wiki
Jump to navigation Jump to search
Line 6: Line 6:
  
 
'''DESCRIPTION'''
 
'''DESCRIPTION'''
:: This command returns a list of all keys currently in the specified cache.  Unlike [[ns_cache]] names, this will operate on caches created via the C APIs, not just ns_cache, which can only operate on caches created by ns_cache. If ''pattern'' is specified, only matching entries are returned (match pattern syntax like in '''string match''').
+
:: This command returns a list of all keys currently in the specified cache.  If ''pattern'' is specified, only matching entries are returned (match pattern syntax like in '''string match''').
:: Note that, unlike ns_cache names, this command will include keys that have expired but have not yet been flushed and keys that are still in progress of being built by ns_cache eval.
+
:: Note that, unlike ns_cache names, this command will include keys that have expired but have not yet been flushed and keys that are still in progress of being built by ns_cache eval. This command will also operate on caches created via the C APIs in addition to the ones created with ns_cache create. [[ns_cache]] can only operate on caches created by ns_cache.  
  
 
'''SEE ALSO'''
 
'''SEE ALSO'''

Revision as of 01:44, 27 October 2009

NAME

ns_cache_keys − Returns a list of cache entry key names.

SYNOPSIS

ns_cache_keys cachename ?pattern?

DESCRIPTION

This command returns a list of all keys currently in the specified cache. If pattern is specified, only matching entries are returned (match pattern syntax like in string match).
Note that, unlike ns_cache names, this command will include keys that have expired but have not yet been flushed and keys that are still in progress of being built by ns_cache eval. This command will also operate on caches created via the C APIs in addition to the ones created with ns_cache create. ns_cache can only operate on caches created by ns_cache.

SEE ALSO

ns_cache

Category Documentation - Category Core Tcl API