Closed AlbinoDrought closed 3 years ago
Releasing this as 3.0.0, could be a breaking change for people that depend on modified behaviour of getCachedValue or setCachedValue in their project. Here's an example of code that would now have different behaviour:
getCachedValue
setCachedValue
const cachios = require('cachios'); const myCustomCache = {}; cachios.getCachedValue = (key) => Promise.resolve(myCustomCache[key]);
Before 3.0, this example could return undefined if key did not exist in myCustomCache.
undefined
key
myCustomCache
After 3.0, this example would cause a fresh request to be sent.
Releasing this as 3.0.0, could be a breaking change for people that depend on modified behaviour of
getCachedValue
orsetCachedValue
in their project. Here's an example of code that would now have different behaviour:Before 3.0, this example could return
undefined
ifkey
did not exist inmyCustomCache
.After 3.0, this example would cause a fresh request to be sent.