本文整理了Java中org.springframework.data.redis.core.SetOperations.union()
方法的一些代码示例,展示了SetOperations.union()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SetOperations.union()
方法的具体详情如下:
包路径:org.springframework.data.redis.core.SetOperations
类名称:SetOperations
方法名:union
[英]Union all sets at given keys and otherKey.
[中]在给定键和其他键处并集所有集。
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public Set<V> union(K key) {
return ops.union(getKey(), key);
}
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public Set<V> union(Collection<K> keys) {
return ops.union(getKey(), keys);
}
代码示例来源:origin: whvcse/EasyWeb
/**
* 获取key集合与多个集合的并集
*
* @param key
* @param otherKeys
* @return
*/
public Set<String> sUnion(String key, Collection<String> otherKeys) {
return redisTemplate.opsForSet().union(key, otherKeys);
}
代码示例来源:origin: whvcse/EasyWeb
/**
* 获取两个集合的并集
*
* @param key
* @param otherKeys
* @return
*/
public Set<String> sUnion(String key, String otherKeys) {
return redisTemplate.opsForSet().union(key, otherKeys);
}
代码示例来源:origin: org.springframework.data/spring-data-redis
@Override
public Set<V> union(Collection<K> keys) {
return ops.union(getKey(), keys);
}
代码示例来源:origin: org.springframework.data/spring-data-redis
@Override
public Set<V> union(K key) {
return ops.union(getKey(), key);
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public Set<V> union(K key) {
return ops.union(getKey(), key);
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public Set<V> union(Collection<K> keys) {
return ops.union(getKey(), keys);
}
内容来源于网络,如有侵权,请联系作者删除!