code: @Override
      public Collection<String> pauseTriggers(GroupMatcher<TriggerKey> matcher, JedisCluster jedis) throws JobPersistenceException {
          Set<String> pausedTriggerGroups = new HashSet<>();
          if (matcher.getCompareWithOperator() == StringMatcher.StringOperatorName.EQUALS) {
              final String triggerGroupSetKey = redisSchema.triggerGroupSetKey(new TriggerKey("", matcher.getCompareToValue()));
              final long addResult = jedis.sadd(redisSchema.pausedTriggerGroupsSet(), triggerGroupSetKey);
              if (addResult > 0) {
                  for (final String trigger : jedis.smembers(triggerGroupSetKey)) {
                      pauseTrigger(redisSchema.triggerKey(trigger), jedis);
                  }
                  pausedTriggerGroups.add(redisSchema.triggerGroup(triggerGroupSetKey));
              }
          } else {
              Map<String, Set<String>> triggerGroups = new HashMap<>();
              for (final String triggerGroupSetKey : jedis.smembers(redisSchema.triggerGroupsSet())) {
                  if (matcher.getCompareWithOperator().evaluate(redisSchema.triggerGroup(triggerGroupSetKey), matcher.getCompareToValue())) {
                      triggerGroups.put(triggerGroupSetKey, jedis.smembers(triggerGroupSetKey));
                  }
              }
              for (final Map.Entry<String, Set<String>> entry : triggerGroups.entrySet()) {
                  if (jedis.sadd(redisSchema.pausedJobGroupsSet(), entry.getKey()) > 0) {
                      // This trigger group was not paused. Pause it now.
                      pausedTriggerGroups.add(redisSchema.triggerGroup(entry.getKey()));
                      for (final String triggerHashKey : entry.getValue()) {
                          pauseTrigger(redisSchema.triggerKey(triggerHashKey), jedis);
                      }
                  }
              }
          }
          return pausedTriggerGroups;
      }
docs: Pause all of the <code>{@link Trigger}s</code> in the given group.
  
  @param matcher matcher for the trigger groups to be paused
  @param jedis   a thread-safe Redis connection
  @return a collection of names of trigger groups which were matched and paused
  @throws JobPersistenceException