template.execute(new SessionCallback<Object>() {
@SuppressWarnings("rawtypes")
public Object execute(RedisOperations operations) {
checkConnection(template, stringConn);
template.discard();
assertSame(template, operations);
checkConnection(template, stringConn);
return null;
}
});