ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/localremote/LocalRemoteCacheFactory.java
@Override
    protected AbstractCache createCacheInternal(String name, long capacity, long expireAfterWrite,
            long expireAfterAccess, Properties cacheProps) {
        ICache localCache = localCacheFactory != null
                ? localCacheFactory.createCache(name, capacity, expireAfterWrite, expireAfterAccess)
                : null;
        ICache remoteCache = remoteCacheFactory != null ? remoteCacheFactory.createCache(name,
                capacity, expireAfterWrite, expireAfterAccess) : null;
        LocalRemoteCache cache = new LocalRemoteCache();
        cache.setName(name).setCapacity(capacity).setExpireAfterAccess(expireAfterAccess)
                .setExpireAfterWrite(expireAfterWrite).setCacheProperties(cacheProps);
        cache.setLocalCache(localCache).setRemoteCache(remoteCache);
        return cache;
    }
@Override
    protected AbstractCache createCacheInternal(String name, long capacity, long expireAfterWrite,
            long expireAfterAccess, Properties cacheProps) {
        ICache localCache = localCacheFactory != null
                ? localCacheFactory.createCache(name, capacity, expireAfterWrite, expireAfterAccess)
                : null;
        ICache remoteCache = remoteCacheFactory != null ? remoteCacheFactory.createCache(name,
                capacity, expireAfterWrite, expireAfterAccess) : null;
        LocalRemoteCache cache = new LocalRemoteCache();
        cache.setName(name).setCapacity(capacity).setExpireAfterAccess(expireAfterAccess)
                .setExpireAfterWrite(expireAfterWrite).setCacheProperties(cacheProps);
        cache.setLocalCache(localCache).setRemoteCache(remoteCache);
        return cache;
    }
{@inheritDoc}