import { AbstractStore } from './abstract-store.js' ; import { BrowserMsg } from '../../browser/browser-msg.js' ; /**
 * Temporrary In-Memory store for sensitive values, expiring after 4 hours
 * see background_page.ts for the other end, also ExpirationCache class
 */ export class InMemoryStore extends AbstractStore { public static set = async ( acctEmail , key , value ? , expiration ? ) => { return await BrowserMsg . send . bg . await . inMemoryStoreSet ( { acctEmail , key , value , expiration } ) ; } ; public static get = async ( acctEmail , key ) : Promise < string | undefined > => { return await BrowserMsg . send . bg . await . inMemoryStoreGet ( { acctEmail , key } ) ?? undefined ; } ; }