Add an interface for a region's user account cache
parent
307a2c61ef
commit
dd1980c24c
|
@ -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)
|
||||
|
|
|
@ -102,6 +102,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
|
|||
return;
|
||||
|
||||
scene.RegisterModuleInterface<IUserAccountService>(this);
|
||||
scene.RegisterModuleInterface<IUserAccountCacheModule>(m_Cache);
|
||||
|
||||
scene.EventManager.OnNewClient += OnNewClient;
|
||||
}
|
||||
|
|
|
@ -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!
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue