Sign in
Log inSign up

Tell me about Redis caching flow for nodejs APIs.

Ashok Dey's photo
Ashok Dey
·Feb 20, 2018

My approach is as follow:

  • SETEX a key (with some expiry) and the value - response of an endpoint.
  • DELETE the key when a new record is created.

Pretty basic one, what are the other techniques involved? How to decide the time for expiry of cache?

Note : I am using MySQL for persisting data

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct