however I found in the testapi case trace.txt, print value is always zero.

I just realized that cachelib_api.h has a few obsolete declarations that didn't keep track of changes in other parts of VEX. Starting from line 130, use the following declaration in place of what is in the distribution