[ci skip]Get cache dir

add method to get cache directory path