add objectcacher and modify endl to std::endl

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>