aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie Thielker2008-08-17 19:10:32 +0000
committerMelanie Thielker2008-08-17 19:10:32 +0000
commit5d6a42a22e7c331551118cea0fc64e3347f83a9c (patch)
tree5251d3f0c7008be00e1a7d47907058b317ad56ec
parent* Turned on the MapImageModule as opposed to the code in Scene for generating... (diff)
downloadopensim-SC-5d6a42a22e7c331551118cea0fc64e3347f83a9c.zip
opensim-SC-5d6a42a22e7c331551118cea0fc64e3347f83a9c.tar.gz
opensim-SC-5d6a42a22e7c331551118cea0fc64e3347f83a9c.tar.bz2
opensim-SC-5d6a42a22e7c331551118cea0fc64e3347f83a9c.tar.xz
Add an invalidate method to the cache class.
-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}