Example usage for org.springframework.data.redis.core RedisOperations delete

List of usage examples for org.springframework.data.redis.core RedisOperations delete

Introduction

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

Prototype

@Nullable
Long delete(Collection<K> keys);

Source Link

Document

Delete given keys .

Usage

From source file:locksdemo.RedisLockServiceTests.java

@Before
public void init() {
    super.init();
    RedisOperations<String, String> template = RedisUtils.stringTemplate(server.getResource());
    template.delete("spring.lock.foo");
    template.delete("spring.lock.bar");
}