to put objects in cache