Bhargav Kumar R
Bhargav Kumar R

Reputation: 2200

What hibernate second level cache contains immediately after the server start up?

What will be present in the hibernate second level cache immediately after the server startup and before firing any actual request. Will it be empty or will it read any data from the data base? Thanks in adavance

Upvotes: 0

Views: 62

Answers (1)

Michał Szynkiewicz
Michał Szynkiewicz

Reputation: 797

It will be empty.

If you want it to be pre-loaded with data you have to write code that will load the data.

Upvotes: 2

Related Questions