A in memory time to live cache with streaming support.
MIT License
Bot releases are visible (Hide)
This release contain the following changes:
Published by trygve-lie almost 6 years ago
This reduce the amount of files in the published npm package.
Published by trygve-lie almost 6 years ago
This release is tested on node.js 11.0.0. It also contain some minor internal formatting changes dues to changes in eslint rules.
Published by trygve-lie almost 7 years ago
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.
Published by trygve-lie almost 7 years ago
Added new method for preventing entries to go into a forever loop when piping caches together #20.
Published by trygve-lie almost 7 years ago
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.
Published by trygve-lie almost 7 years ago
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 to ttl
on the global constructor.changelog
is set to true
.set
event does now emit key
and item
instead of a object with these two values. This does now align with the dispose
event.Published by trygve-lie almost 7 years ago
Made arguments on the constructor enumerable.
Published by trygve-lie almost 7 years ago
Published by trygve-lie almost 7 years ago
Made dispose
event emit disposed item #10
Published by trygve-lie almost 7 years ago
Added .dump()
, .load()
and .length()
methods.
Published by trygve-lie almost 7 years ago
This release fixes a memory lead caused by a constant growing buffer on the stream when no other stream was attached to pipe too. #6
Published by trygve-lie about 7 years ago
Added changefeed feature.
Published by trygve-lie about 7 years ago
Added support for caching items forever by setting maxAge
to Infinity
#4
Published by trygve-lie about 7 years ago
Added method for clearing all items from the cache #3
Published by trygve-lie about 7 years ago
Added feature for returning stale items (#2) when they are being pruned.
Published by trygve-lie about 7 years ago
Added .prune()
method.
Published by trygve-lie about 7 years ago
Initial implementation of internals and public API.