Sets the maximum age a text extraction result is kept in the cache (in hours) as a String.<p>

@param extractionCacheMaxAge the maximum age for a text extraction result to set
979018
public void setExtractionCacheMaxAge(String extractionCacheMaxAge) {

        try {
            setExtractionCacheMaxAge(Float.parseFloat(extractionCacheMaxAge));
        } catch (NumberFormatException e) {
            LOG.error(
                Messages.get().getBundle().key(
                    Messages.LOG_PARSE_EXTRACTION_CACHE_AGE_FAILED_2,
                    extractionCacheMaxAge,
                    new Float(DEFAULT_EXTRACTION_CACHE_MAX_AGE)),
                e);
            setExtractionCacheMaxAge(DEFAULT_EXTRACTION_CACHE_MAX_AGE);
        }
    }
782931
public void setMaxDateLastModified(String maxDateLastModified) {

        m_parameters.setMaxDateLastModified(
            CmsStringUtil.getLongValue(maxDateLastModified, Long.MAX_VALUE, "maxDateLastModified"));
    }
980583
public void setChildrenMax(int max) {
        addField(ConfigureNodeFields.children_max, FormField.Type.text_single);
        setAnswer(ConfigureNodeFields.children_max.getFieldName(), max);
    }
784808
public void setMaxProcessedResults(String maxProcessedResults) {

        try {
            m_maxProcessedResults = Integer.parseInt(maxProcessedResults);
        } catch (Exception e) {
            LOG.warn(
                "Could not parse value "
                    + maxProcessedResults
                    + " as Integer to set the limit for the number of results a Solr index can return.");
        }
        if (m_maxProcessedResults <= 0) {
            m_maxProcessedResults = DEFAULT_MAX_PROCESSED_RESULTS;
            LOG.warn(
                "The maximal number of results to return by a Solr index should be greater than 0. Reset it to the default value "
                    + DEFAULT_MAX_PROCESSED_RESULTS
                    + ".");
        }
    }
274863
protected void buildCache(int maxCacheSize) {
        if (blackPrefixList != null && !blackPrefixList.isEmpty()) {
            int min = Math.min(256, maxCacheSize);
            int max = Math.min(10240, maxCacheSize);
            ConcurrentLinkedHashMap.Builder<String, Boolean> builder = new ConcurrentLinkedHashMap.Builder<String, Boolean>()
                .initialCapacity(min).maximumWeightedCapacity(max);
            this.resultOfInBlackList = builder.build();
        } else {
            this.resultOfInBlackList = null;
        }
    }
662280
@Nonnull
  public TypeaheadRemote setCache (@Nonnull final ETriState eCache)
  {
    m_eCache = ValueEnforcer.notNull (eCache, "Cache");
    return this;
  }
1354486
public void setMaxDateCreated(String maxDateCreated) {

        m_parameters.setMaxDateCreated(CmsStringUtil.getLongValue(maxDateCreated, Long.MAX_VALUE, "maxDateCreated"));
    }
779146
public void setMaxDateLastModified(String maxDateLastModified) {

        if ((CmsStringUtil.isNotEmptyOrWhitespaceOnly(maxDateLastModified)) && (!maxDateLastModified.equals("0"))) {
            m_searchParams.setMaxDateLastModified(Long.parseLong(maxDateLastModified));
        } else {
            m_searchParams.setMaxDateLastModified(Long.MAX_VALUE);
        }
    }
956628
@Nonnull
  public CacheControlBuilder setMaxAge (@Nonnull final TimeUnit eTimeUnit, final long nDuration)
  {
    return setMaxAgeSeconds (eTimeUnit.toSeconds (nDuration));
  }
765876
public static function set_cache_age($age)
    {
        Deprecation::notice('5.0', 'Use HTTPCacheControlMiddleware::singleton()->setMaxAge($age) instead');
        self::$cache_age = $age;
        HTTPCacheControlMiddleware::singleton()->setMaxAge($age);
    }
773900
function () {
            var cache = this._cache;
            var expirationTime = ((new Date()).getTime() - this._expiresAfter * 1000);

            for (var url in cache) {
                if (cache.hasOwnProperty(url) && cache[url].age < expirationTime) {
                    delete cache[url];
                }
            }
        }
385874
public function setPreFlightCacheMaxAge(int $cacheMaxAge): self
    {
        \assert($cacheMaxAge >= 0);

        $this->preFlightCacheMaxAge   = $cacheMaxAge;
        $this->isPreFlightCanBeCached = $cacheMaxAge > 0;

        return $this;
    }
597349
public void setMax(int max) {
    if (max <= 0 || max < mProgress) {
      throw new IllegalArgumentException(
          String.format("Max (%d) must be > 0 and >= %d", max, mProgress));
    }
    mMax = max;
    invalidate();
  }
541159
public Date setMaxSelectableDate(Date max) {
		if (max == null) {
			maxSelectableDate = defaultMaxSelectableDate;
		} else {
			maxSelectableDate = max;
		}
		return maxSelectableDate;
	}
295174
public void setMax(java.lang.Object _max) {
		getStateHelper().put(PropertyKeys.max, _max);
	}
508519
public DurationRule maxAge(long maxAge, TimeUnit timeUnit) {
    return maxAge(Duration.ofNanos(TimeUnit.NANOSECONDS.convert(maxAge, timeUnit)));
  }
99918
def get_max_age(self):
        '''
        '''

        default_ttl = self.context.config.RESULT_STORAGE_EXPIRATION_SECONDS
        if self.context.request.max_age == 0:
            return self.context.request.max_age

        return default_ttl