Apache Cassandra 1.2 Documentation

CONSISTENCY

The Cassandra 1.2 documentation is transitioning to a new format!
Please use the new Cassandra 1.2 documentation instead.
Back to Table of Contents
CQL Commands Table of Contents

Shows the current consistency level, or given a level, sets it.

Synopsis

CONSISTENCY level

Synopsis legend

Description

Providing an argument to the CONSISTENCY command overrides the default consistency level of ONE, setting the consistency level for future requests. Valid values are: ANY, ONE, TWO, THREE, QUORUM, ALL, LOCAL_QUORUM and EACH_QUORUM. See About data consistency for more information about these settings.

Providing no argument shows the current consistency level.

Example

CONSISTENCY

If you haven't changed the default, the output of the CONSISTENCY command with no arguments is: Current consistency level is ONE.