Generic file caching for nodejs.