Search in sources :

Example 1 with TimespanCacheHandler

use of lucee.runtime.cache.tag.timespan.TimespanCacheHandler in project Lucee by lucee.

the class CacheHandlerCollectionImpl method getTimespanInstance.

public CacheHandler getTimespanInstance(CacheHandler defaultValue) {
    Iterator<CacheHandler> it = handlers.values().iterator();
    CacheHandler ch;
    while (it.hasNext()) {
        ch = it.next();
        if (ch instanceof TimespanCacheHandler)
            return ch;
    }
    return defaultValue;
}
Also used : TimespanCacheHandler(lucee.runtime.cache.tag.timespan.TimespanCacheHandler) TimespanCacheHandler(lucee.runtime.cache.tag.timespan.TimespanCacheHandler)

Aggregations

TimespanCacheHandler (lucee.runtime.cache.tag.timespan.TimespanCacheHandler)1