v6.0.0
💥 Breaking Changes
#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 ofmemcached
. 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 thename
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.
📦️ Code Refactoring
- #48 refactor: rewrite, use memcached-elasticache & drop Node 8 (@aaarichter)
🏡 Internal
- #59 ci(actions): adding GitHub actions (@aaarichter)