@extra-memoize/memory-cache 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/caches/expirable-cache-with-stale-if-error.d.ts +1 -1
- package/lib/es2015/caches/expirable-cache-with-stale-while-revalidate-and-stale-if-error.d.ts +1 -1
- package/lib/es2015/caches/expirable-cache-with-stale-while-revalidate.d.ts +1 -1
- package/lib/es2015/caches/expirable-cache.d.ts +1 -1
- package/lib/es2015/caches/lru-cache.d.ts +1 -1
- package/lib/es2015/caches/tlru-cache-with-stale-if-error.d.ts +1 -1
- package/lib/es2015/caches/tlru-cache-with-stale-while-revalidate-and-stale-if-error.d.ts +1 -1
- package/lib/es2015/caches/tlru-cache-with-stale-while-revalidate.d.ts +1 -1
- package/lib/es2015/caches/tlru-cache.d.ts +1 -1
- package/lib/es2018/caches/expirable-cache-with-stale-if-error.d.ts +1 -1
- package/lib/es2018/caches/expirable-cache-with-stale-while-revalidate-and-stale-if-error.d.ts +1 -1
- package/lib/es2018/caches/expirable-cache-with-stale-while-revalidate.d.ts +1 -1
- package/lib/es2018/caches/expirable-cache.d.ts +1 -1
- package/lib/es2018/caches/lru-cache.d.ts +1 -1
- package/lib/es2018/caches/tlru-cache-with-stale-if-error.d.ts +1 -1
- package/lib/es2018/caches/tlru-cache-with-stale-while-revalidate-and-stale-if-error.d.ts +1 -1
- package/lib/es2018/caches/tlru-cache-with-stale-while-revalidate.d.ts +1 -1
- package/lib/es2018/caches/tlru-cache.d.ts +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IStaleIfErrorCache, State } from 'extra-memoize';
|
2
|
-
export declare class ExpirableCacheWithStaleIfError<T
|
2
|
+
export declare class ExpirableCacheWithStaleIfError<T> implements IStaleIfErrorCache<T> {
|
3
3
|
private timeToLive;
|
4
4
|
private staleIfError;
|
5
5
|
private cache;
|
package/lib/es2015/caches/expirable-cache-with-stale-while-revalidate-and-stale-if-error.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IStaleWhileRevalidateAndStaleIfErrorCache, State } from 'extra-memoize';
|
2
|
-
export declare class ExpirableCacheWithStaleWhileRevalidateAndStaleIfError<T
|
2
|
+
export declare class ExpirableCacheWithStaleWhileRevalidateAndStaleIfError<T> implements IStaleWhileRevalidateAndStaleIfErrorCache<T> {
|
3
3
|
private timeToLive;
|
4
4
|
private staleWhileRevalidate;
|
5
5
|
private staleIfError;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IStaleWhileRevalidateCache, State } from 'extra-memoize';
|
2
|
-
export declare class ExpirableCacheWithStaleWhileRevalidate<T
|
2
|
+
export declare class ExpirableCacheWithStaleWhileRevalidate<T> implements IStaleWhileRevalidateCache<T> {
|
3
3
|
private timeToLive;
|
4
4
|
private staleWhileRevalidate;
|
5
5
|
private cache;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IStaleIfErrorCache, State } from 'extra-memoize';
|
2
|
-
export declare class TLRUCacheWithStaleIfError<T
|
2
|
+
export declare class TLRUCacheWithStaleIfError<T> implements IStaleIfErrorCache<T> {
|
3
3
|
private timeToLive;
|
4
4
|
private staleIfError;
|
5
5
|
private cache;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IStaleWhileRevalidateAndStaleIfErrorCache, State } from 'extra-memoize';
|
2
|
-
export declare class TLRUCacheWithStaleWhileRevalidateAndStaleIfError<T
|
2
|
+
export declare class TLRUCacheWithStaleWhileRevalidateAndStaleIfError<T> implements IStaleWhileRevalidateAndStaleIfErrorCache<T> {
|
3
3
|
private timeToLive;
|
4
4
|
private staleWhileRevalidate;
|
5
5
|
private staleIfError;
|
@@ -3,7 +3,7 @@ interface IRecord<T> {
|
|
3
3
|
updatedAt: number;
|
4
4
|
value: T;
|
5
5
|
}
|
6
|
-
export declare class TLRUCacheWithStaleWhileRevalidate<T
|
6
|
+
export declare class TLRUCacheWithStaleWhileRevalidate<T> implements IStaleWhileRevalidateCache<T> {
|
7
7
|
private timeToLive;
|
8
8
|
private staleWhileRevalidate;
|
9
9
|
private cache;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IStaleIfErrorCache, State } from 'extra-memoize';
|
2
|
-
export declare class ExpirableCacheWithStaleIfError<T
|
2
|
+
export declare class ExpirableCacheWithStaleIfError<T> implements IStaleIfErrorCache<T> {
|
3
3
|
private timeToLive;
|
4
4
|
private staleIfError;
|
5
5
|
private cache;
|
package/lib/es2018/caches/expirable-cache-with-stale-while-revalidate-and-stale-if-error.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IStaleWhileRevalidateAndStaleIfErrorCache, State } from 'extra-memoize';
|
2
|
-
export declare class ExpirableCacheWithStaleWhileRevalidateAndStaleIfError<T
|
2
|
+
export declare class ExpirableCacheWithStaleWhileRevalidateAndStaleIfError<T> implements IStaleWhileRevalidateAndStaleIfErrorCache<T> {
|
3
3
|
private timeToLive;
|
4
4
|
private staleWhileRevalidate;
|
5
5
|
private staleIfError;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IStaleWhileRevalidateCache, State } from 'extra-memoize';
|
2
|
-
export declare class ExpirableCacheWithStaleWhileRevalidate<T
|
2
|
+
export declare class ExpirableCacheWithStaleWhileRevalidate<T> implements IStaleWhileRevalidateCache<T> {
|
3
3
|
private timeToLive;
|
4
4
|
private staleWhileRevalidate;
|
5
5
|
private cache;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IStaleIfErrorCache, State } from 'extra-memoize';
|
2
|
-
export declare class TLRUCacheWithStaleIfError<T
|
2
|
+
export declare class TLRUCacheWithStaleIfError<T> implements IStaleIfErrorCache<T> {
|
3
3
|
private timeToLive;
|
4
4
|
private staleIfError;
|
5
5
|
private cache;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IStaleWhileRevalidateAndStaleIfErrorCache, State } from 'extra-memoize';
|
2
|
-
export declare class TLRUCacheWithStaleWhileRevalidateAndStaleIfError<T
|
2
|
+
export declare class TLRUCacheWithStaleWhileRevalidateAndStaleIfError<T> implements IStaleWhileRevalidateAndStaleIfErrorCache<T> {
|
3
3
|
private timeToLive;
|
4
4
|
private staleWhileRevalidate;
|
5
5
|
private staleIfError;
|
@@ -3,7 +3,7 @@ interface IRecord<T> {
|
|
3
3
|
updatedAt: number;
|
4
4
|
value: T;
|
5
5
|
}
|
6
|
-
export declare class TLRUCacheWithStaleWhileRevalidate<T
|
6
|
+
export declare class TLRUCacheWithStaleWhileRevalidate<T> implements IStaleWhileRevalidateCache<T> {
|
7
7
|
private timeToLive;
|
8
8
|
private staleWhileRevalidate;
|
9
9
|
private cache;
|