ttl-mem-cache

A in memory time to live cache with streaming support.

MIT License

Downloads
12.4K
Stars
5
Committers
2

Bot releases are visible (Hide)

ttl-mem-cache - Version 4.1.0 Latest Release

Published by trygve-lie over 5 years ago

This release contain the following changes:

  • Guard against max listeners warnings - #39
  • Use public readableFlowing instead of private flowing method - #41
ttl-mem-cache - Version 4.0.2

Published by trygve-lie almost 6 years ago

This reduce the amount of files in the published npm package.

ttl-mem-cache - Version 4.0.1

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.

ttl-mem-cache - Version 4.0.0

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.

ttl-mem-cache - Version 3.1.0

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.

ttl-mem-cache - Version 3.0.1

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.

ttl-mem-cache - Version 3.0.0

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.
  • The stream does not emit a changelog value if changelog is set to true.
  • The set event does now emit key and item instead of a object with these two values. This does now align with the dispose event.
ttl-mem-cache - Version 2.3.1

Published by trygve-lie almost 7 years ago

Made arguments on the constructor enumerable.

ttl-mem-cache - Version 2.3.0

Published by trygve-lie almost 7 years ago

  • Assigned Class constructor to a const to please V8
  • Moved static methods off public API.
  • Added tests
  • Updated dependencies
ttl-mem-cache - Version 2.1.0

Published by trygve-lie almost 7 years ago

Made dispose event emit disposed item #10

ttl-mem-cache - Version 2.0.0

Published by trygve-lie almost 7 years ago

Added .dump(), .load() and .length() methods.

ttl-mem-cache - Version 1.5.0

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

ttl-mem-cache - Version 1.4.0

Published by trygve-lie about 7 years ago

Added changefeed feature.

ttl-mem-cache - Version 1.3.0

Published by trygve-lie about 7 years ago

Added support for caching items forever by setting maxAge to Infinity #4

ttl-mem-cache - Version 1.2.0

Published by trygve-lie about 7 years ago

Added method for clearing all items from the cache #3

ttl-mem-cache - Version 1.1.0

Published by trygve-lie about 7 years ago

Added feature for returning stale items (#2) when they are being pruned.

ttl-mem-cache - Version 1.0.1

Published by trygve-lie about 7 years ago

Added .prune() method.

ttl-mem-cache - Version 1.0.0

Published by trygve-lie about 7 years ago

Initial implementation of internals and public API.