update mthread & testmodule
add double-link cache
add emptycache
update cache for dbimpl
update cache
add unit test for cache