@donotjs/donot-cache-filesystem.

1.0.3 • Public • Published

donot-cache-filesystem

Build Status

File system cache engine for donot.

How to Use

Usage: new FileSystemCache(cacheDir, options)

Example

var http = require('http'),
    donot = require('donot'),
    FileSystemCache = require('donot-cache-filesystem');

var server = http.createServer(donot(__dirname + '/public', {
	cache: new FileSystemCache(yourCacheDir, {
		createDirectory: false
	})
));

server.listen(8000);

Remark. It does not make sense to use caching without one or more engine plug-ins - as only an engine's output is cached. See donot for available engine plug-ins.

Options

There is only one available option for this plug-in.

Name Type Default Description
createDirectory Boolean false Create directory if it does not exist.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @donotjs/donot-cache-filesystem.

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • trenskow