code improvement
fixed warning in dmdbcache.h
fixed gcc error with friend class