allows settings cache using setCache method