Multiple choice technology programming languages

What does CacheMode do ?

  1. controls how a particular SessionFactory interacts with the Data Base.

  2. controls how a particular SessionFactory interacts with the second-level cache.

  3. controls how a particular session interacts with the second-level cache.

  4. None

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

CacheMode is configured on a per-Session basis to determine how that specific session interacts with the second-level cache (e.g. bypass, refresh, or read-only). The SessionFactory manages global configurations rather than individual session cache behaviors.