Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does Hydrate support caching?

caching hydrate support
0
Posted

Does Hydrate support caching?

0

Yes, and no. One man’s cache is another man’s crock, so we have to be careful to define what we mean here. Hydrate currently prefers to promote a paradigm in which objects are read from the database each time a request is made, thus in effect, handing the responsibility for caching down to the database engine (many of which do a pretty good job). Hydrate works with the database drivers to permit them to cache queries and result sets. Once the objects have been read into memory, you are also free to decide which of them you keep in memory between requests, and which you discard from memory.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123