Example usage for org.springframework.data.redis.connection RedisConnection resetConfigStats

List of usage examples for org.springframework.data.redis.connection RedisConnection resetConfigStats

Introduction

In this page you can find the example usage for org.springframework.data.redis.connection RedisConnection resetConfigStats.

Prototype

void resetConfigStats();

Source Link

Document

Reset statistic counters on server.

Usage

From source file:com.zxy.commons.cache.RedisUtils.java

/**
 * Reset statistic counters on server. <br>
 * Counters can be retrieved using {@link #info()}.
 * <p>//from   ww w  .ja  v a 2 s.c o m
 * See http://redis.io/commands/config-resetstat
 */
public static void resetConfigStats() {
    redisTemplate.execute(new RedisCallback<Void>() {
        @Override
        public Void doInRedis(RedisConnection redis) throws DataAccessException {
            redis.resetConfigStats();
            return null;
        }
    });
}

From source file:com.zxy.commons.cache.RedisHelper.java

/**
 * Reset statistic counters on server. <br>
 * Counters can be retrieved using {@link #info()}.
 * <p>/*from  w ww.  j  a  va  2s .c  o  m*/
 * See http://redis.io/commands/config-resetstat
 */
public void resetConfigStats() {
    redisTemplate.execute(new RedisCallback<Void>() {
        @Override
        public Void doInRedis(RedisConnection redis) throws DataAccessException {
            redis.resetConfigStats();
            return null;
        }
    });
}