apache-geode-extensions/src/main/java/org/springframework/geode/cache/SimpleCacheResolver.java
/**
	 * Attempts to resolve an {@link Optional} {@link ClientCache} instance.
	 *
	 * @return an {@link Optional} {@link ClientCache} instance.
	 * @see org.springframework.geode.util.CacheUtils#isClientCache(RegionService)
	 * @see org.apache.geode.cache.client.ClientCacheFactory#getAnyInstance()
	 * @see org.apache.geode.cache.client.ClientCache
	 * @see java.util.Optional
	 */
Attempts to resolve an  Optional  ClientCache instance.
@return an  Optional  ClientCache instance.
Attempts to resolve an Optional ClientCache instance . @return an Optional ClientCache instance .
public Optional<ClientCache> resolveClientCache() {
		try {
			return Optional.ofNullable(ClientCacheFactory.getAnyInstance())
				.filter(CacheUtils::isClientCache);
		}
		catch (Throwable ignore) {
			return Optional.empty();
		}
	}
public Optional < ClientCache > resolveClientCache ( ) { try { return Optional . ofNullable ( ClientCacheFactory . getAnyInstance ( ) ) . filter ( CacheUtils :: isClientCache ) ; } catch ( Throwable ignore ) { return Optional . empty ( ) ; } }
Attempts to resolve an {@link Optional} {@link ClientCache} instance.
Attempts to resolve an { @link Optional } { @link ClientCache } instance .