@ Override public void set ( String key , Object entry , long expireAfterWrite , long expireAfterAccess ) { try { if ( localCache != null ) { localCache . set ( key , entry , expireAfterWrite , expireAfterAccess ) ; } if ( remoteCache != null ) { remoteCache . set ( key , entry , expireAfterWrite , expireAfterAccess ) ; } } catch ( Exception e ) { throw e instanceof CacheException ? ( CacheException ) e : new CacheException ( e ) ; } }
Puts an entry to both local and remote caches with specified expiries .