added put function for disk cache