Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

111
Visualizações
Node.js/Express local disk caching

I have data from my firebase database. I want to cache it as json file so I don't need to query it every time the user access my web app.

This module is good https://www.npmjs.com/package/apicache but it doesn't cache it locally. It is good since it will check if the cache is already in there , if not , you can perform queries to the db. Can you recommend me good local caching. I dont need to put it in memory cos the json file is quite big.

about 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

That doesn't answer the exact asked question. But for the people that are searching for a simple in disk cache.

I will save you time. Here is the best package i found https://www.npmjs.com/package/flat-cache

(flashing capability (save()), you can precise cache directory, by default it fallback to .cache directory in the package folder in node_module. Which is good hidden place, & generally no permission problem, Can be accessed from multiple programs, over 5 million down, ...).

about 4 years ago · Santiago Trujillo Relatório

0

You can download and run redis which is, to quote from their site:

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.

It's one of the best for the purpose of caching.

There's a popular npm package you can use redis with.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda