Visit Azul.com Support

List-Cache-Keys

Table of Contents
Need help?
Schedule a consultation with an Azul performance expert.
Contact Us

Lists all keys in a Hazelcast cache.

Synopsis

 
asadmin [asadmin-options] list-cache-keys [--help] [--target target] [--name name]

Description

This command can be used to list all keys in a Hazelcast (Data Grid) cache.

Options

asadmin-options: Options for the asadmin utility. For information about these options, see the asadmin help page. --help: -?: Displays the help text for the subcommand. --target: This option helps specify the target on which you are executing this operation. Valid values are:
server;; Applies to the default server instance. This is the default value. instance_name;; Applies to a specified server instance. --name: Name of the cache to query.

+ TIP: If omitted, this command will be executed for all available caches in the corresponding target.

Examples

Example 1 Lists all keys in all available caches.

 
asadmin> list-cache-keys { Cache payara-instance-map {5d0928cf-fd3d-404f-a6c6-985293f0295f, c7d90acc-43a3-492d-8c9c-8cd9b950fb37, 5e984e01-0c6a-4b34-b608-56b79285c36b, 9ba96a9f-d7ff-4c79-acef-8dd8091f40a6, Cache payara.instance.store {5d0928cf-fd3d-404f-a6c6-985293f0295f, 5e984e01-0c6a-4b34-b608-56b79285c36b, Cache payara.micro.applications.store {__admingui, } Command list-cache-keys executed successfully.