Heat the olive oil until medium to hot. Fry the cashews until lightly browned all over. Remove with a slotted spoon and set aside.
Fry the mushrooms until the juices start to run and add the garlic, allspice, thyme and cayenne. Cook for about 10 minutes until really soft.
Process the nuts until finely chopped. Pour into a small bowl to set aside.
Process the mushroom mixture until finely chopped. Add the tofu and process until smooth. Add the nuts back in, season well, process again and then pour into a serving dish or lidded container. Chill until needed.