title: How to create cache for multi Threads to access?
body: <p>I have a service that spins up 50+ agents.</p>
  <p>Service =&gt; creates lots of agents in separate threads. The agent needs to load 1 of 2 binary tree's created dynamically, but this needs to be reloaded often.</p>
  <p>Is their a way I can cache the binary tree's, for all the agents to utilize, instead of each one having to load its own instance? would that need to happen in the service level? ie. service creates 2 binary trees. service creates agents. Agents now can access it.
  I have never cached anything before. I would also need a mechanism to rebuild this binary tree with new data, yet not break the agents who are trying to access it.</p>
  <p>Im dealing with an incredibly high volume of data processing. ie. 50,000 records a second needing to be compared. Im trying to avoid having each agent store their own binary tree, as it would eat up memory. I am fine doing instead of caching, sql light solutions, or other in memory options.</p>