Compare commits
No commits in common. "cache-draft" and "main" have entirely different histories.
cache-draf
...
main
|
@ -1,21 +0,0 @@
|
|||
import { Injectable } from "@nestjs/common";
|
||||
import { Indexes } from "../indexes.js";
|
||||
import { GetOperationResult } from "../providers/abstract.provider.js";
|
||||
|
||||
export type CacheRowData = Indexes | GetOperationResult;
|
||||
class CacheRow {
|
||||
data: CacheRowData;
|
||||
expires: Date;
|
||||
}
|
||||
|
||||
const cache = [] as CacheRow[];
|
||||
|
||||
@Injectable()
|
||||
export class KeysCacheProvider {
|
||||
|
||||
|
||||
|
||||
put(data: CacheRowData) {
|
||||
|
||||
}
|
||||
}
|
|
@ -3,10 +3,9 @@ import { HKPController } from './controllers/hkp.controller.js'
|
|||
import { OpenPGPKeysProvider } from './providers/openpgp.provider.js'
|
||||
import { AllKeysProvider } from './providers/all.provider.js'
|
||||
import { UbuntuKeysProvider } from './providers/ubuntu.provider.js'
|
||||
import { KeysCacheProvider } from './cache/cache.provider.js'
|
||||
|
||||
@Module({
|
||||
providers: [OpenPGPKeysProvider, UbuntuKeysProvider, AllKeysProvider, KeysCacheProvider],
|
||||
providers: [OpenPGPKeysProvider, UbuntuKeysProvider, AllKeysProvider],
|
||||
controllers: [HKPController],
|
||||
exports: [OpenPGPKeysProvider, UbuntuKeysProvider, AllKeysProvider],
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue