Changelog
v6.0.0 (2021-06-27)
<a id="v6.0.0"></a>
#48 refactor: rewrite, use memcached-elasticache & drop Node 8 (@aaarichter)
Dropped Node 8.x. Use Node 10.13 or higher.
Uses memcached-elasticache
with AWS support instead of memcached
. See https://github.com/jkehres/memcached-elasticache#readme
API functions no longer support callbacks.
API functions use native Promises instead of Bluebird
.
cached()
needs to be called with a string argument as name. If the name
argument is undefined, it will fallback to "default"
.
Cache.setBackend()
no longer returns the created backend.
Cache.getWrapped()
is removed.
Cache backend APIs need to be promise based.
Cache private function have been renamed.
The following function are now private:
Cache.applyPrefix
Cache.end
Cache.prepareOptions
Cache.setBackend
cache.set()
, cache.get()
, cache.getOrElse()
, cache.unset()
no longer support the callback argument. Use them as promise.
cache.set()
no longer returns a value.
cache.set(key, value)
accepts functions and promises as value.
Any client passed with the memcached backend options has to be an instance of Memcached
.
Backend setters no longer return a value.
backend addType()
does not return backend class anymore.
Changelog
5.0.0
drops support for Node 6, which is a current LTS release.
See: f4ba4c9
Changelog
4.3.2
35b216e
chore: Apply latest nlm generator