feat: make cache puts configurable

This commit is contained in:
ppedziwiatr
2021-09-22 11:20:19 +02:00
committed by Piotr Pędziwiatr
parent 02b58217f7
commit d858c08b72
15 changed files with 172 additions and 58 deletions

View File

@@ -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),