test setting a cache