List of usage examples for org.springframework.data.redis.connection RedisConnection hKeys
@Nullable Set<byte[]> hKeys(byte[] key);
From source file:com.mauersu.util.redis.DefaultHashOperations.java
public Set<HK> keys(K key) { final byte[] rawKey = rawKey(key); Set<byte[]> rawValues = execute(new RedisCallback<Set<byte[]>>() { public Set<byte[]> doInRedis(RedisConnection connection) { connection.select(dbIndex);/* ww w.j a v a 2 s. co m*/ return connection.hKeys(rawKey); } }, true); return deserializeHashKeys(rawValues); }
From source file:com.zxy.commons.cache.RedisUtils.java
/** * Get key set (fields) of hash at {@code key}. * // ww w .j a v a2s.c o m * @see http://redis.io/commands/h? * @param key key * @return Set<byte[]> */ public static Set<byte[]> hKeys(byte[] key) { return redisTemplate.execute(new RedisCallback<Set<byte[]>>() { @Override public Set<byte[]> doInRedis(RedisConnection redis) throws DataAccessException { return redis.hKeys(key); } }); }
From source file:com.zxy.commons.cache.RedisHelper.java
/** * Get key set (fields) of hash at {@code key}. * /*w w w. j a va 2 s. c o m*/ * @see http://redis.io/commands/h? * @param key key * @return Set<byte[]> */ public Set<byte[]> hKeys(byte[] key) { return redisTemplate.execute(new RedisCallback<Set<byte[]>>() { @Override public Set<byte[]> doInRedis(RedisConnection redis) throws DataAccessException { return redis.hKeys(key); } }); }