79483239

Date: 2025-03-04 09:40:25
Score: 1.5
Natty:
Report link

If your aim is to use it like a cache there are several options:

  1. Service with a singleton lifetime containing that ConcurrentDictionary. It would mean that your controller uses the same service instance on every request.
  2. Making your ConcurrentDictionary a static field.
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jaroslav