mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Add an invalidate method to the cache class.
This commit is contained in:
@@ -492,5 +492,15 @@ namespace Opensim.Framework
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user