Add an invalidate method to the cache class.

0.6.0-stable
Melanie Thielker 2008-08-17 19:10:32 +00:00
parent 0683a07081
commit 5d6a42a22e
1 changed files with 10 additions and 0 deletions

View File

@ -492,5 +492,15 @@ namespace Opensim.Framework
break; break;
} }
} }
public void Invalidate(LLUUID uuid)
{
if(!m_Lookup.ContainsKey(uuid))
return;
CacheItemBase item = m_Lookup[uuid];
m_Lookup.Remove(uuid);
m_Index.Remove(item);
}
} }
} }