diff --git a/OpenSim/Framework/Cache.cs b/OpenSim/Framework/Cache.cs index 7a1d682f06..8d93d3efe2 100644 --- a/OpenSim/Framework/Cache.cs +++ b/OpenSim/Framework/Cache.cs @@ -354,6 +354,17 @@ namespace Opensim.Framework return data; } + // Find an object in cache by delegate. + // + public Object Find(Predicate d) + { + CacheItemBase item = m_Index.Find(d); + + if(item == null) + return null; + + return item.Retrieve(); + } public virtual void Store(LLUUID index, Object data) {