Add an interface for a region's user account cache

avinationmerge
Melanie 2011-01-27 02:58:14 +01:00
parent 307a2c61ef
commit dd1980c24c
4 changed files with 16 additions and 1 deletions

View File

@ -120,6 +120,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
return;
scene.RegisterModuleInterface<IUserAccountService>(m_UserService);
scene.RegisterModuleInterface<IUserAccountCacheModule>(m_Cache);
}
public void RemoveRegion(Scene scene)

View File

@ -102,6 +102,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
return;
scene.RegisterModuleInterface<IUserAccountService>(this);
scene.RegisterModuleInterface<IUserAccountCacheModule>(m_Cache);
scene.EventManager.OnNewClient += OnNewClient;
}

View File

@ -34,7 +34,7 @@ using log4net;
namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
{
public class UserAccountCache
public class UserAccountCache : IUserAccountCacheModule
{
private const double CACHE_EXPIRATION_SECONDS = 120000.0; // 33 hours!

View File

@ -0,0 +1,13 @@
///////////////////////////////////////////////////////////////////
//
// (c) Careminster Limited, Melanie Thielker and the Meta7 Team
//
// This file is not open source. All rights reserved
//
using OpenSim.Region.Framework.Scenes;
public interface IUserAccountCacheModule
{
void Remove(string name);
}