A simple Cache class