Back to Redis

CONFIG RESETSTAT

content/commands/config-resetstat.md

latest1.2 KB
Original Source

Resets the statistics reported by Redis using the [INFO]({{< relref "/commands/info" >}}) and [LATENCY HISTOGRAM]({{< relref "/commands/latency-histogram" >}}) commands.

The following is a non-exhaustive list of values that are reset:

  • Keyspace hits and misses
  • Number of expired keys
  • Command and error statistics
  • Connections received, rejected and evicted
  • Persistence statistics
  • Active defragmentation statistics

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Not supported">❌ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | <span title="Not supported">❌ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | |

Return information

{{< multitabs id="config-resetstat-return-info" tab1="RESP2" tab2="RESP3" >}}

Simple string reply: OK.

-tab-sep-

Simple string reply: OK.

{{< /multitabs >}}