ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/localremote/LocalRemoteCache.java
@Override
    public void delete(String key) {
        try {
            if (localCache != null) {
                localCache.delete(key);
            }
            if (remoteCache != null) {
                remoteCache.delete(key);
            }
        } catch (Exception e) {
            throw e instanceof CacheException ? (CacheException) e : new CacheException(e);
        }
    }
@Override
    public void delete(String key) {
        try {
            if (localCache != null) {
                localCache.delete(key);
            }
            if (remoteCache != null) {
                remoteCache.delete(key);
            }
        } catch (Exception e) {
            throw e instanceof CacheException ? (CacheException) e : new CacheException(e);
        }
    }
@ Override public void delete ( String key ) { try { if ( localCache != null ) { localCache . delete ( key ) ; } if ( remoteCache != null ) { remoteCache . delete ( key ) ; } } catch ( Exception e ) { throw e instanceof CacheException ? ( CacheException ) e : new CacheException ( e ) ; } }
Delete an entry from both local and remote caches.
Delete an entry from both local and remote caches .