Example usage for org.springframework.data.redis.core RedisTemplate getExpire

List of usage examples for org.springframework.data.redis.core RedisTemplate getExpire

Introduction

In this page you can find the example usage for org.springframework.data.redis.core RedisTemplate getExpire.

Prototype

@Override
    public Long getExpire(K key) 

Source Link

Usage

From source file:org.springframework.integration.redis.util.RedisLockRegistryTests.java

private Long getExpire(RedisLockRegistry registry, String lockKey) {
    RedisTemplate<String, ?> template = this.createTemplate();
    String registryKey = TestUtils.getPropertyValue(registry, "registryKey", String.class);
    return template.getExpire(registryKey + ":" + lockKey);
}