Releases: trygve-lie/ttl-mem-cache
Version 4.1.0
Version 4.0.2
This reduce the amount of files in the published npm package.
Version 4.0.1
This release is tested on node.js 11.0.0. It also contain some minor internal formatting changes dues to changes in eslint rules.
Version 4.0.0
Added support for non-object mode stream. In non-object mode the cache will emit Buffers and accept Buffers on the write stream. This simplifies piping cache instances together over a socket.
Internally this has been developed using a feature introduced in node.js version 8.2.0. Due to this, support for node.js 6.x is dropped.
Version 3.1.0
Added new method for preventing entries to go into a forever loop when piping caches together #20.
Version 3.0.1
Added support for Symbol.toPrimitiv()
.
This makes it possible to do Bugger.from(EntryObj)
on the Entry object emitted on the Stream API. When done, the buffer will contain a stringified JSON representation of the Entry object.
Version 3.0.0
This release introduces an structured entry object which holds the item to be cached in the cache. This entry object is also used on the stream to exchange cache items between cache instances.
Its also introduced several optimizations on different validation checks in the cache.
This release have some breaking changes:
maxAge
is now renamed tottl
on the global constructor.- The stream does not emit a changelog value if
changelog
is set totrue
. - The
set
event does now emitkey
anditem
instead of a object with these two values. This does now align with thedispose
event.
Version 2.3.1
Made arguments on the constructor enumerable.
Version 2.3.0
- Assigned Class constructor to a const to please V8
- Moved static methods off public API.
- Added tests
- Updated dependencies
Version 2.1.0
Made dispose
event emit disposed item #10