A gulp plugin for caching files in memory to enable incremental builds. Version 0.3.0 is the latest stable release, but development appears to be sparse with no recent updates. It provides functions like cache(), cache.save(), cache.flush(), cache.forget(), cache.update(), cache.lastMtime(), and cache.get(). Unlike gulp-cached, this plugin also tracks file modification times and supports custom file path transformations. It is designed for Gulp 4, but can be used with Gulp 3 in combination with gulp-cached.
npm install gulp-memory-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates a basic incremental build task with JSHint, caching, concatenation, and a watcher that updates the cache on file changes.
Upgrade to Gulp 4, or combine with gulp-cached.
Always pass a cache name string.
Migrate to actively maintained alternatives.
Monitor memory usage or use disk-based caching for large projects.
Use `const cache = require('gulp-memory-cache');` instead of `import cache from 'gulp-memory-cache';`.Call `cache('js')` with a cache name string.Use `cache.lastMtime('name')` instead of `gulp.lastRun('task')`.