mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
Add some asset cache plumbing. Change the generic cache from UUID to string
keys to allow caching the new crop of URI identified objects.
This commit is contained in:
@@ -25,9 +25,15 @@
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
using OpenSim.Framework;
|
||||
|
||||
namespace OpenSim.Region.Framework.Interfaces
|
||||
{
|
||||
public interface IImprovedAssetCache
|
||||
{
|
||||
void Cache(AssetBase asset);
|
||||
AssetBase Get(string id);
|
||||
void Expire(string id);
|
||||
void Clear();
|
||||
}
|
||||
}
|
||||
@@ -2825,8 +2825,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
objectCapacity = objects;
|
||||
}
|
||||
|
||||
public List<FriendListItem> GetFriendList(UUID avatarID)
|
||||
public List<FriendListItem> GetFriendList(string id)
|
||||
{
|
||||
UUID avatarID;
|
||||
if (!UUID.TryParse(id, out avatarID))
|
||||
return new List<FriendListItem>();
|
||||
|
||||
return CommsManager.GetUserFriendList(avatarID);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user