rest api cache example