Use TypeError instead of ValueError and give a nicer error mesasge when someone calls Cache.invalidate with the wrong type.
Use TypeError instead of ValueError and give a nicer error mesasge
when someone calls Cache.invalidate with the wrong type.

matrix-org/synapse,iot-factory/synapse,rzr/synapse,matrix-org/synapse,iot-factory/synapse,iot-factory/synapse,rzr/synapse,matrix-org/synapse,rzr/synapse,matrix-org/synapse,iot-factory/synapse,TribeMedia/synapse,TribeMedia/synapse,matrix-org/synapse,matrix-org/synapse,rzr/synapse,TribeMedia/synapse,TribeMedia/synapse,rzr/synapse,iot-factory/synapse,TribeMedia/synapse