Querying and invalidating data

[Version 8.5 and later] You can use the query interfaces in the monitoring console and in the xscmd utility to retrieve small sets of keys from a map and invalidate sets of data.

Before you begin

About this task

You can use the console or the xscmd utility to query data grid contents. You can query the data by running a regular expression on the data key. You can then use the same query to invalidate data.
A regular expression is a structured string that is used to match other strings. Some examples of common regular expressions follow:
Regular expression Description
. Finds any one character.
.* Finds any one character zero or more times.
A.* Finds all keys that start with "A".
.*A Finds all keys that end with "A".
A? Finds "A", zero or one time.
A* Finds "A", zero or many times.
A+ Finds "A", one time or many times.
A?B*C+ Finds any one character, followed by zero or one A, followed by zero or many Bs, followed by one or many Cs
[ABC].* Finds keys that start with the letters "A", or "B", or "C".
.*ABC.* Finds keys with the string "ABC" somewhere in the string.
(ABC|DEF).* Finds keys that start with the string "ABC" or "DEF".
See the java.util.regex.Pattern API documentation for the full regular expression syntax.

Procedure