if (sessionLocatorNameEquals(KetamaMemcachedSessionLocator.class)) {
return new KetamaMemcachedSessionLocator(getHashAlgorithm());
}
if (sessionLocatorNameEquals(PHPMemcacheSessionLocator.class)) {
return new PHPMemcacheSessionLocator(getHashAlgorithm());
}
throw new IllegalArgumentException("Unsupported "
+ PROP_SESSION_LOCATOR + " value: " + getCommandFactoryName());
}