feat: cache search results (#869)

This commit is contained in:
Daniel Lautzenheiser
2023-09-07 08:54:59 -04:00
committed by GitHub
parent 6022ead87a
commit 1c8ff049c5
4 changed files with 33 additions and 3 deletions

View File

@ -1037,6 +1037,12 @@ export interface SearchResponse {
pagination: number;
}
export type SearchQueryRequest = {
id: string;
expires: Date;
queryResponse: Promise<SearchQueryResponse>;
};
export interface SearchQueryResponse {
hits: Entry[];
query: string;