Suppose I build a datatable, and fill it.
And that I have methods for putting the table in cache (Application Cache or Session cache or "Cache" cache) and getting it out again.
And I put it in cache. And then I do this:
dim dt as datatable = GetTableFromCache("MyTable")
(do things to dt)
What I'm trying to figure out is:
A) is the dt just a reference to the table, which is actually in cache?
B) is it necessary to put it back, or have the changes to dt already been made to the table in cache (since dt is just a reference)
C) is the table in cache safe from any changes by any other thread during this operation, or could a change slip in between the "dim dt" and the "synclock dt".
Any guidance on this would be appreciated.