For that purpose you can use "dummy" cache backend. Here are the old style and new style configuration formats.