This package has been deprecated

Author message:

This package is no longer actively maintained.

@donotjs/donot-cache-memory

1.0.0 • Public • Published

donot-cache-memory

Build Status

Memory cache engine for donot.

How to Use

Usage: new MemoryCache()

Example

var http = require('http'),
    donot = require('donot'),
    MemoryCache = require('donot-cache-memory');

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

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.

Memory Usage

This plug-in keeps all cache in memory and it does not take memory usage into account.

If you need large amounts of caching - e.g. you have many templates - it is recommended to use the donot-cache-filesystem or donot-cache-redis.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @donotjs/donot-cache-memory

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • trenskow_deprecated