now can set the cache dir from constructor

Signed-off-by: broklyn gagah <broklyn.gagah@gmail.com>