Skip to content

Commit

Permalink
chore: pre release 5.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zzau13 committed Nov 2, 2022
1 parent 7a6a10c commit e6c6f09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions History.md
@@ -1,3 +1,7 @@
- 5.1.2 (2022-11-02)

- Fixes multi caching re populate higher priority caches when a key is found in lower ones

- 5.1.1 (2022-10-19)

- Fixes bad Cache wrap function definition
Expand All @@ -8,11 +12,11 @@

- 5.0.1

- Fix unexported types - @botika
- Fix unexported types

- 5.0.0

- Refactor to promise and typescript (#203). - @botika
- Refactor to promise and typescript (#203).
- Remove `ignoreCacheErrors`: not valid in async/await context
- Remove `refreshThreshold`: use lower ttl
- Remove callbackFiller
Expand Down
4 changes: 2 additions & 2 deletions test/multi-caching.test.ts
Expand Up @@ -142,7 +142,7 @@ describe('multiCaching', () => {

describe('issues', () => {
it('#253', async () => {
const cache0 = await caching('memory', { ttl: 100 });
const cache0 = await caching('memory', { ttl: 500 });
const cache1 = await caching('memory', { ttl: 1000 });
const multi = multiCaching([cache0, cache1]);
const key = 'bar';
Expand All @@ -151,7 +151,7 @@ describe('multiCaching', () => {
const fn = async () => value;

await multi.wrap(key, fn);
await sleep(100);
await sleep(500);
await expect(cache0.get(key)).resolves.toBeUndefined();
await expect(cache1.get(key)).resolves.toEqual(value);

Expand Down

0 comments on commit e6c6f09

Please sign in to comment.