Example usage for org.springframework.data.redis.core HashOperations keys

List of usage examples for org.springframework.data.redis.core HashOperations keys

Introduction

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

Prototype

Set<HK> keys(H key);

Source Link

Document

Get key set (fields) of hash at key .

Usage

From source file:com.easarrive.datasource.redis.etago.AbstractDaoByRedisTemplate.java

public Set<F> hashKeys(K key) {
    HashOperations<K, F, V> hashOperations = redisTemplate.opsForHash();
    Set<F> keySet = hashOperations.keys(key);
    return keySet;
}

From source file:com.company.project.service.dao.RedisDao.java

public Set keysHash(String objectKey) {
    HashOperations opsForHash = redisTemplate.opsForHash();
    return opsForHash.keys(objectKey);
}