Package com.opensymphony.oscache.web.filter

Examples of com.opensymphony.oscache.web.filter.ExpiresRefreshPolicy


        EntryRefreshPolicy refreshPolicy = null;

        if (expired != null) {
            int ttl = (int) (expired.getTime() - System.currentTimeMillis()) / 1000;

            refreshPolicy = new ExpiresRefreshPolicy(ttl);
        }

        cache.putInCache((String) key, value, refreshPolicy);
    }
View Full Code Here

TOP

Related Classes of com.opensymphony.oscache.web.filter.ExpiresRefreshPolicy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.