@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.
Files changed (27) hide show
  1. package/dist/es2015/index.min.mjs.map +1 -1
  2. package/dist/es2015/index.mjs.map +1 -1
  3. package/dist/es2015/index.umd.js.map +1 -1
  4. package/dist/es2015/index.umd.min.js.map +1 -1
  5. package/dist/es2018/index.min.mjs.map +1 -1
  6. package/dist/es2018/index.mjs.map +1 -1
  7. package/dist/es2018/index.umd.js.map +1 -1
  8. package/dist/es2018/index.umd.min.js.map +1 -1
  9. package/lib/es2015/caches/expirable-cache-with-stale-if-error.d.ts +1 -1
  10. package/lib/es2015/caches/expirable-cache-with-stale-while-revalidate-and-stale-if-error.d.ts +1 -1
  11. package/lib/es2015/caches/expirable-cache-with-stale-while-revalidate.d.ts +1 -1
  12. package/lib/es2015/caches/expirable-cache.d.ts +1 -1
  13. package/lib/es2015/caches/lru-cache.d.ts +1 -1
  14. package/lib/es2015/caches/tlru-cache-with-stale-if-error.d.ts +1 -1
  15. package/lib/es2015/caches/tlru-cache-with-stale-while-revalidate-and-stale-if-error.d.ts +1 -1
  16. package/lib/es2015/caches/tlru-cache-with-stale-while-revalidate.d.ts +1 -1
  17. package/lib/es2015/caches/tlru-cache.d.ts +1 -1
  18. package/lib/es2018/caches/expirable-cache-with-stale-if-error.d.ts +1 -1
  19. package/lib/es2018/caches/expirable-cache-with-stale-while-revalidate-and-stale-if-error.d.ts +1 -1
  20. package/lib/es2018/caches/expirable-cache-with-stale-while-revalidate.d.ts +1 -1
  21. package/lib/es2018/caches/expirable-cache.d.ts +1 -1
  22. package/lib/es2018/caches/lru-cache.d.ts +1 -1
  23. package/lib/es2018/caches/tlru-cache-with-stale-if-error.d.ts +1 -1
  24. package/lib/es2018/caches/tlru-cache-with-stale-while-revalidate-and-stale-if-error.d.ts +1 -1
  25. package/lib/es2018/caches/tlru-cache-with-stale-while-revalidate.d.ts +1 -1
  26. package/lib/es2018/caches/tlru-cache.d.ts +1 -1
  27. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { IStaleIfErrorCache, State } from 'extra-memoize';
2
- export declare class ExpirableCacheWithStaleIfError<T = any> implements IStaleIfErrorCache<T> {
2
+ export declare class ExpirableCacheWithStaleIfError<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 ExpirableCacheWithStaleWhileRevalidateAndStaleIfError<T = any> implements IStaleWhileRevalidateAndStaleIfErrorCache<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 = any> implements IStaleWhileRevalidateCache<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 { ICache, State } from 'extra-memoize';
2
- export declare class ExpirableCache<T = any> implements ICache<T> {
2
+ export declare class ExpirableCache<T> implements ICache<T> {
3
3
  private timeToLive;
4
4
  private map;
5
5
  constructor(timeToLive: number);
@@ -1,5 +1,5 @@
1
1
  import { ICache, State } from 'extra-memoize';
2
- export declare class LRUCache<T = any> implements ICache<T> {
2
+ export declare class LRUCache<T> implements ICache<T> {
3
3
  private map;
4
4
  constructor(limit: number);
5
5
  set(key: string, value: T): void;
@@ -1,5 +1,5 @@
1
1
  import { IStaleIfErrorCache, State } from 'extra-memoize';
2
- export declare class TLRUCacheWithStaleIfError<T = any> implements IStaleIfErrorCache<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 = any> implements IStaleWhileRevalidateAndStaleIfErrorCache<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 = any> implements IStaleWhileRevalidateCache<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 { ICache, State } from 'extra-memoize';
2
- export declare class TLRUCache<T = any> implements ICache<T> {
2
+ export declare class TLRUCache<T> implements ICache<T> {
3
3
  private timeToLive;
4
4
  private map;
5
5
  constructor(limit: number, timeToLive: number);
@@ -1,5 +1,5 @@
1
1
  import { IStaleIfErrorCache, State } from 'extra-memoize';
2
- export declare class ExpirableCacheWithStaleIfError<T = any> implements IStaleIfErrorCache<T> {
2
+ export declare class ExpirableCacheWithStaleIfError<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 ExpirableCacheWithStaleWhileRevalidateAndStaleIfError<T = any> implements IStaleWhileRevalidateAndStaleIfErrorCache<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 = any> implements IStaleWhileRevalidateCache<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 { ICache, State } from 'extra-memoize';
2
- export declare class ExpirableCache<T = any> implements ICache<T> {
2
+ export declare class ExpirableCache<T> implements ICache<T> {
3
3
  private timeToLive;
4
4
  private map;
5
5
  constructor(timeToLive: number);
@@ -1,5 +1,5 @@
1
1
  import { ICache, State } from 'extra-memoize';
2
- export declare class LRUCache<T = any> implements ICache<T> {
2
+ export declare class LRUCache<T> implements ICache<T> {
3
3
  private map;
4
4
  constructor(limit: number);
5
5
  set(key: string, value: T): void;
@@ -1,5 +1,5 @@
1
1
  import { IStaleIfErrorCache, State } from 'extra-memoize';
2
- export declare class TLRUCacheWithStaleIfError<T = any> implements IStaleIfErrorCache<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 = any> implements IStaleWhileRevalidateAndStaleIfErrorCache<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 = any> implements IStaleWhileRevalidateCache<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 { ICache, State } from 'extra-memoize';
2
- export declare class TLRUCache<T = any> implements ICache<T> {
2
+ export declare class TLRUCache<T> implements ICache<T> {
3
3
  private timeToLive;
4
4
  private map;
5
5
  constructor(limit: number, timeToLive: number);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extra-memoize/memory-cache",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "files": [