All challenges
Multiple ChoiceHard 30s

Weak References for Caching

Choose the best answer for: weakref caching
Options
  1. 1A weakref cache stores objects permanently and never frees them
  2. 2WeakValueDictionary caches objects without preventing GC
  3. 3weakref dictionaries are thread-safe for concurrent mutation
  4. 4weakref is a mechanism used mainly for caching file handles

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle