clear-cache

Clears a Hazelcast or JCache IMap.

Synopsis

asadmin [asadmin-options] clear-cache
[--help]
[--target target]
[--cachename cachename]

Description

This command can be used to clear a Hazelcast or JCache IMap.

Use of this command removes all data from a cache and therefore can result in unexpected behaviour if a system cache is cleared.
Clearing a cache containing web session data will result in all users losing their sessions, for example.

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.

--cachename

Name of the cache/map to clear.

Examples

Example 1 Clears a Hazelcast or JCache IMap

asadmin> clear-cache --cachename payara.instance.store
Cleared Cache payara.instance.store
Command clear-cache executed successfully.