modify inteface of connectiondata, add cache and stream in entity.

Signed-off-by: charlown.cai <charlown@163.com>