aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Cache.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-08-17 19:10:32 +0000
committerMelanie Thielker2008-08-17 19:10:32 +0000
commit5d6a42a22e7c331551118cea0fc64e3347f83a9c (patch)
tree5251d3f0c7008be00e1a7d47907058b317ad56ec /OpenSim/Framework/Cache.cs
parent* Turned on the MapImageModule as opposed to the code in Scene for generating... (diff)
downloadopensim-SC_OLD-5d6a42a22e7c331551118cea0fc64e3347f83a9c.zip
opensim-SC_OLD-5d6a42a22e7c331551118cea0fc64e3347f83a9c.tar.gz
opensim-SC_OLD-5d6a42a22e7c331551118cea0fc64e3347f83a9c.tar.bz2
opensim-SC_OLD-5d6a42a22e7c331551118cea0fc64e3347f83a9c.tar.xz
Add an invalidate method to the cache class.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Cache.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Framework/Cache.cs b/OpenSim/Framework/Cache.cs
index 4746d3c..bccda24 100644
--- a/OpenSim/Framework/Cache.cs
+++ b/OpenSim/Framework/Cache.cs
@@ -492,5 +492,15 @@ namespace Opensim.Framework
492 break; 492 break;
493 } 493 }
494 } 494 }
495
496 public void Invalidate(LLUUID uuid)
497 {
498 if(!m_Lookup.ContainsKey(uuid))
499 return;
500
501 CacheItemBase item = m_Lookup[uuid];
502 m_Lookup.Remove(uuid);
503 m_Index.Remove(item);
504 }
495 } 505 }
496} 506}