File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
export { Cache } from './cacheHandler'
2
2
export { FileSystemCache } from './strategies/fileSystem'
3
3
export { MemoryCache , type MemoryCacheConstructorProps } from './strategies/memory'
4
- export * from '@dbbs/next-cache-handler-common '
4
+ export type { LoggerInputParams , BaseLogger } from './logger '
Original file line number Diff line number Diff line change 1
- import { BaseLogger , LoggerInputParams } from '@dbbs/next-cache-handler-common'
1
+ export type LoggerInputParams = Parameters < typeof console . log >
2
+
3
+ export interface BaseLogger {
4
+ info ( ...params : LoggerInputParams ) : void
5
+ error ( ...params : LoggerInputParams ) : void
6
+ }
2
7
3
8
export class ConsoleLogger implements BaseLogger {
4
9
constructor ( ) { }
Original file line number Diff line number Diff line change @@ -3,13 +3,6 @@ import type { CacheHandlerContext as NextCacheHandlerContext } from 'next/dist/s
3
3
4
4
export { NextCacheHandlerContext , IncrementalCacheValue , IncrementalCacheKindHint }
5
5
6
- export type LoggerInputParams = Parameters < typeof console . log >
7
-
8
- export interface BaseLogger {
9
- info ( ...params : LoggerInputParams ) : void
10
- error ( ...params : LoggerInputParams ) : void
11
- }
12
-
13
6
export interface CacheEntry {
14
7
value : IncrementalCacheValue | null
15
8
lastModified : number // time when data was saved
You can’t perform that action at this time.
0 commit comments