setting cache