@Override public void clear() { // intersect the set with a non existing one // TODO: find a safer way to clean the set String randomKey = UUID.randomUUID().toString(); boundSetOps.intersectAndStore(Collections.singleton(randomKey), getKey()); }
@Override public RedisSet<E> intersectAndStore(RedisSet<?> set, String destKey) { boundSetOps.intersectAndStore(set.getKey(), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }
@Override public RedisSet<E> intersectAndStore(Collection<? extends RedisSet<?>> sets, String destKey) { boundSetOps.intersectAndStore(CollectionUtils.extractKeys(sets), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }
@Override public void clear() { // intersect the set with a non existing one // TODO: find a safer way to clean the set String randomKey = UUID.randomUUID().toString(); boundSetOps.intersectAndStore(Collections.singleton(randomKey), getKey()); }
@Override public void clear() { // intersect the set with a non existing one // TODO: find a safer way to clean the set String randomKey = UUID.randomUUID().toString(); boundSetOps.intersectAndStore(Collections.singleton(randomKey), getKey()); }
@Override public RedisSet<E> intersectAndStore(RedisSet<?> set, String destKey) { boundSetOps.intersectAndStore(set.getKey(), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }
@Override public RedisSet<E> intersectAndStore(Collection<? extends RedisSet<?>> sets, String destKey) { boundSetOps.intersectAndStore(CollectionUtils.extractKeys(sets), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }
@Override public RedisSet<E> intersectAndStore(Collection<? extends RedisSet<?>> sets, String destKey) { boundSetOps.intersectAndStore(CollectionUtils.extractKeys(sets), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }
@Override public RedisSet<E> intersectAndStore(RedisSet<?> set, String destKey) { boundSetOps.intersectAndStore(set.getKey(), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }