update hashmap api

Signed-off-by: yayanyang <yayanyang@gmail.com>