implement Cache compute() methods