@Override
    public void destroyObject(final PooledObject<MemcachedClientIF> p) {
        try {
            p.getObject().shutdown();
            p.invalidate();
        } catch (final Exception e) {
            LoggingUtils.error(LOGGER, e);
        }
    }
This is {@link MemcachedPooledClientConnectionFactory}.

@author Misagh Moayyed
@since 5.2.0
@deprecated Since 7.0.0
support/cas-server-support-memcached-core/src/main/java/org/apereo/cas/memcached/MemcachedPooledClientConnectionFactory.java