resetStat

PHP Redis

 

resetStat

Description

Resets the statistics reported by Redis using the INFO command (info() function).

使用info()重置静态的日志。

These are the counters that are reset:

  • Keyspace hits
  • Keyspace misses
  • Number of commands processed
  • Number of connections received
  • Number of expired keys
Parameters

None.

Return value

BOOLTRUE in case of success, FALSE in case of failure.

Example
$redis->resetStat();