Depends on what front end you use. But for text-generation-webui for example, Prompt Caching is simply a checkbox under the Model tab you can select before you click "load model".
What are some of the best coding models that run locally today? Do they have prompt caching support?