A thin cache wrapper with a generic interface to various caching backends.