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

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

Introduction

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

Prototype

void scriptKill();

Source Link

Document

Kill current lua script execution.

Usage

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

/**
 * Kill current lua script execution.//  w  ww  .ja va2 s .  c o  m
 * <p>
 * See http://redis.io/commands/script-kill
 */
public static void scriptKill() {
    redisTemplate.execute(new RedisCallback<Void>() {
        @Override
        public Void doInRedis(RedisConnection redis) throws DataAccessException {
            redis.scriptKill();
            return null;
        }
    });
}

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

/**
 * Kill current lua script execution.//from   w  w w. jav  a  2s .  c  om
 * <p>
 * See http://redis.io/commands/script-kill
 */
public void scriptKill() {
    redisTemplate.execute(new RedisCallback<Void>() {
        @Override
        public Void doInRedis(RedisConnection redis) throws DataAccessException {
            redis.scriptKill();
            return null;
        }
    });
}