Code example for CacheException

0
 
        MemcacheClientFactory clientFactory;
        try { 
            clientFactory = (MemcacheClientFactory) constructor.newInstance(config.getPropertiesHelper());
        } catch (Exception e) {
            throw new CacheException(
                    "Unable to instantiate factory class [" + factoryClassName + "]", e);
        } 
 
        return clientFactory;
    } 
 
    public void stop() { 
        if (client != null) {
            log.debug("Shutting down Memcache client"); 
            client.shutdown();
        } 
        client = null;
    } 
 
Experience pair programming with AI  Get Codota for Java