protected void putToCache ( String cacheName , String key , Object value , long ttlSeconds ) { if ( cacheItemsExpireAfterWrite ) { putToCache ( cacheName , key , value , ttlSeconds , 0 ) ; } else { putToCache ( cacheName , key , value , 0 , ttlSeconds ) ; } }
Puts an entry to cache with specific TTL .