use lambda for cache method
add document and test dummy