Adding cache api