set expiration time on cache