Package org.jasig.portal.utils

Examples of org.jasig.portal.utils.SmartCache


    long willExpire = expiration.getTime();
    long cacheIntervalSecs = (willExpire - now) / 1000;
   
    if ( cacheIntervalSecs > 0 )
    {
        SmartCache sc = (SmartCache)getLockCache(lock.getEntityType());

        synchronized (sc) {
            sc.put( getCacheKey(lock), lock, (cacheIntervalSecs) );
        }
    }
    // Else the lock has already expired. 
}
View Full Code Here

TOP

Related Classes of org.jasig.portal.utils.SmartCache

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.