It should be possible to configure ccache using one or several configuration files in addition to the current model of setting environment variables. See also Debian bug report #248892: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=248892
I plan to work on this in version 3.2.
Implemented on the master branch.
Included in v3.2.