/** * Constructs a new {@link DefaultRedisSet} instance. * * @param boundOps {@link BoundSetOperations} for the value type of this set. */ public DefaultRedisSet(BoundSetOperations<String, E> boundOps) { super(boundOps.getKey(), boundOps.getOperations()); this.boundSetOps = boundOps; }
@Override public RedisSet<E> diffAndStore(Collection<? extends RedisSet<?>> sets, String destKey) { boundSetOps.diffAndStore(CollectionUtils.extractKeys(sets), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }
@Override public RedisSet<E> diffAndStore(RedisSet<?> set, String destKey) { boundSetOps.diffAndStore(set.getKey(), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }
@Override public RedisSet<E> unionAndStore(RedisSet<?> set, String destKey) { boundSetOps.unionAndStore(set.getKey(), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }
@Override public RedisSet<E> unionAndStore(Collection<? extends RedisSet<?>> sets, String destKey) { boundSetOps.unionAndStore(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)); }
@Override public RedisSet<E> intersectAndStore(Collection<? extends RedisSet<?>> sets, String destKey) { boundSetOps.intersectAndStore(CollectionUtils.extractKeys(sets), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }
/** * Constructs a new {@link DefaultRedisSet} instance. * * @param boundOps {@link BoundSetOperations} for the value type of this set. */ public DefaultRedisSet(BoundSetOperations<String, E> boundOps) { super(boundOps.getKey(), boundOps.getOperations()); this.boundSetOps = boundOps; }
/** * Constructs a new {@link DefaultRedisSet} instance. * * @param boundOps {@link BoundSetOperations} for the value type of this set. */ public DefaultRedisSet(BoundSetOperations<String, E> boundOps) { super(boundOps.getKey(), boundOps.getOperations()); this.boundSetOps = boundOps; }
@Override public RedisSet<E> diffAndStore(Collection<? extends RedisSet<?>> sets, String destKey) { boundSetOps.diffAndStore(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)); }
@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> unionAndStore(Collection<? extends RedisSet<?>> sets, String destKey) { boundSetOps.unionAndStore(CollectionUtils.extractKeys(sets), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }
@Override public RedisSet<E> diffAndStore(Collection<? extends RedisSet<?>> sets, String destKey) { boundSetOps.diffAndStore(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> diffAndStore(RedisSet<?> set, String destKey) { boundSetOps.diffAndStore(set.getKey(), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }
@Override public RedisSet<E> unionAndStore(RedisSet<?> set, String destKey) { boundSetOps.unionAndStore(set.getKey(), 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)); }
@Override public RedisSet<E> diffAndStore(RedisSet<?> set, String destKey) { boundSetOps.diffAndStore(set.getKey(), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }
@Override public RedisSet<E> unionAndStore(RedisSet<?> set, String destKey) { boundSetOps.unionAndStore(set.getKey(), destKey); return new DefaultRedisSet<>(boundSetOps.getOperations().boundSetOps(destKey)); }