nodetool invalidatekeycache

Resets the global key cache parameter to the default, which saves all keys.

Resets the global key cache parameter to the default, which saves all keys.

Synopsis 

C:\> %CASSANDRA_HOME%\bin\nodetool <options> invalidatekeycache
Options
Short Long Description
-h --host Hostname or IP address.
-p --port Port number.
-pwf --password-file Password file path.
-pw --password Password.
-u --username Remote JMX agent username.
-- Separates an option from an argument that could be mistaken for a option.

Description 

By default the key_cache_keys_to_save is disabled in the cassandra.yaml. This command resets the parameter to the default.

The location of the cassandra.yaml file depends on the type of installation:
Windows 3.0 installations C:\Program Files\DataStax Community\apache-cassandra\conf\cassandra.yaml
CASSANDRA_HOME
Windows 3.0 installations C:\Program Files\Datastax Community\apache-cassandra\
Windows 3.x installations C:\Program Files\Datastax-DDC\apache-cassandra\
On a standard Windows installation, the installation wizard creates %CASSANDRA_HOME% as an environment variable.