mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Refactor asset handling as per Ubit's suggestion
This commit is contained in:
@@ -131,16 +131,15 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||
// We don't do negative caching
|
||||
}
|
||||
|
||||
public AssetBase Get(string id, out bool negative)
|
||||
public bool Get(string id, out AssetBase asset)
|
||||
{
|
||||
negative = false;
|
||||
Object a = null;
|
||||
m_Cache.TryGet(id, out a);
|
||||
|
||||
Object asset = null;
|
||||
m_Cache.TryGet(id, out asset);
|
||||
Debug(a);
|
||||
|
||||
Debug(asset);
|
||||
|
||||
return (AssetBase)asset;
|
||||
asset = (AssetBase)a;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Expire(string id)
|
||||
|
||||
Reference in New Issue
Block a user