Browse Source

feat: implement in-memory storage for Figma extraction data with automated pruning

main
sina_sajjadi 1 week ago
parent
commit
0d93b7d09d
  1. 2
      bridge-server/src/storage.js
  2. 2
      bridge-server/src/storage.ts

2
bridge-server/src/storage.js

@ -3,7 +3,7 @@
* Each extraction is stored with a unique ID, timestamp, and the full payload.
*/
/** Maximum number of extractions to keep in memory */
const MAX_EXTRACTIONS = 10;
const MAX_EXTRACTIONS = 1;
class ExtractionStore {
constructor() {
this.extractions = new Map();

2
bridge-server/src/storage.ts

@ -30,7 +30,7 @@ export interface Extraction {
}
/** Maximum number of extractions to keep in memory */
const MAX_EXTRACTIONS = 10;
const MAX_EXTRACTIONS = 1;
class ExtractionStore {
private extractions: Map<string, Extraction> = new Map();

Loading…
Cancel
Save