1.0.3 • Published 8 years ago

@donotjs/donot-cache-filesystem. v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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.

NameTypeDefaultDescription
createDirectoryBooleanfalseCreate directory if it does not exist.

License

MIT

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago