code: public boolean setTriggerState(final RedisTriggerState state, final double score, final String triggerHashKey, T jedis) throws JobPersistenceException{
          boolean success = false;
          if(state != null){
              unsetTriggerState(triggerHashKey, jedis);
              success = jedis.zadd(redisSchema.triggerStateKey(state), score, triggerHashKey) == 1;
          }
          return success;
      }
docs: Set a trigger state by adding the trigger to the relevant sorted set, using its next fire time as the score.
  @param state the new state to be set
  @param score the trigger's next fire time
  @param triggerHashKey the trigger hash key
  @param jedis a thread-safe Redis connection
  @return true if set, false if the trigger was already a member of the given state's sorted set and its score was updated
  @throws JobPersistenceException if the set operation fails