@Override public RedisHyperLogLogCommands hyperLogLogCommands() { return new LettuceClusterHyperLogLogCommands(this); }
@Override public Long pfCount(byte[]... keys) { if (ClusterSlotHashUtil.isSameSlotForAllKeys(keys)) { try { return super.pfCount(keys); } catch (Exception ex) { throw convertLettuceAccessException(ex); } } throw new InvalidDataAccessApiUsageException("All keys must map to same slot for pfcount in cluster mode."); }
@Override public void pfMerge(byte[] destinationKey, byte[]... sourceKeys) { byte[][] allKeys = ByteUtils.mergeArrays(destinationKey, sourceKeys); if (ClusterSlotHashUtil.isSameSlotForAllKeys(allKeys)) { try { super.pfMerge(destinationKey, sourceKeys); return; } catch (Exception ex) { throw convertLettuceAccessException(ex); } } throw new InvalidDataAccessApiUsageException("All keys must map to same slot for pfmerge in cluster mode."); } }
@Override public RedisHyperLogLogCommands hyperLogLogCommands() { return new LettuceClusterHyperLogLogCommands(this); }
@Override public Long pfCount(byte[]... keys) { if (ClusterSlotHashUtil.isSameSlotForAllKeys(keys)) { try { return super.pfCount(keys); } catch (Exception ex) { throw convertLettuceAccessException(ex); } } throw new InvalidDataAccessApiUsageException("All keys must map to same slot for pfcount in cluster mode."); }
@Override public RedisHyperLogLogCommands hyperLogLogCommands() { return new LettuceClusterHyperLogLogCommands(this); }
@Override public Long pfCount(byte[]... keys) { if (ClusterSlotHashUtil.isSameSlotForAllKeys(keys)) { try { return super.pfCount(keys); } catch (Exception ex) { throw convertLettuceAccessException(ex); } } throw new InvalidDataAccessApiUsageException("All keys must map to same slot for pfcount in cluster mode."); }
@Override public void pfMerge(byte[] destinationKey, byte[]... sourceKeys) { byte[][] allKeys = ByteUtils.mergeArrays(destinationKey, sourceKeys); if (ClusterSlotHashUtil.isSameSlotForAllKeys(allKeys)) { try { super.pfMerge(destinationKey, sourceKeys); return; } catch (Exception ex) { throw convertLettuceAccessException(ex); } } throw new InvalidDataAccessApiUsageException("All keys must map to same slot for pfmerge in cluster mode."); } }
@Override public void pfMerge(byte[] destinationKey, byte[]... sourceKeys) { byte[][] allKeys = ByteUtils.mergeArrays(destinationKey, sourceKeys); if (ClusterSlotHashUtil.isSameSlotForAllKeys(allKeys)) { try { super.pfMerge(destinationKey, sourceKeys); return; } catch (Exception ex) { throw convertLettuceAccessException(ex); } } throw new InvalidDataAccessApiUsageException("All keys must map to same slot for pfmerge in cluster mode."); } }