feat: make cache puts configurable
This commit is contained in:
committed by
Piotr Pędziwiatr
parent
02b58217f7
commit
d858c08b72
@@ -1,11 +1,12 @@
|
||||
const express = require('express');
|
||||
const cors = require('cors');
|
||||
const { MemBlockHeightSwCache } = require('../lib/cjs/cache/impl/MemBlockHeightCache');
|
||||
const app = express();
|
||||
const port = 3000;
|
||||
|
||||
console.log(MemBlockHeightSwCache);
|
||||
app.use(cors());
|
||||
app.use(express.json({ limit: "50mb", extended: true }));
|
||||
|
||||
app.use(express.json());
|
||||
|
||||
const caches = {
|
||||
STATE: new MemBlockHeightSwCache(1),
|
||||
|
||||
Reference in New Issue
Block a user