diff options
author | Melanie | 2011-01-27 02:58:14 +0100 |
---|---|---|
committer | Melanie | 2011-01-27 02:58:14 +0100 |
commit | dd1980c24c280a4cc3fc08e0a06ed8c9d0db583c (patch) | |
tree | d6b3d3b7d78a3d8b9a4b3a5ad8b483f487fd971f /OpenSim/Region/CoreModules | |
parent | Fix merge artifacts (diff) | |
download | opensim-SC-dd1980c24c280a4cc3fc08e0a06ed8c9d0db583c.zip opensim-SC-dd1980c24c280a4cc3fc08e0a06ed8c9d0db583c.tar.gz opensim-SC-dd1980c24c280a4cc3fc08e0a06ed8c9d0db583c.tar.bz2 opensim-SC-dd1980c24c280a4cc3fc08e0a06ed8c9d0db583c.tar.xz |
Add an interface for a region's user account cache
Diffstat (limited to 'OpenSim/Region/CoreModules')
3 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs index 9ecbcc6..535a637 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs | |||
@@ -120,6 +120,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts | |||
120 | return; | 120 | return; |
121 | 121 | ||
122 | scene.RegisterModuleInterface<IUserAccountService>(m_UserService); | 122 | scene.RegisterModuleInterface<IUserAccountService>(m_UserService); |
123 | scene.RegisterModuleInterface<IUserAccountCacheModule>(m_Cache); | ||
123 | } | 124 | } |
124 | 125 | ||
125 | public void RemoveRegion(Scene scene) | 126 | public void RemoveRegion(Scene scene) |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/RemoteUserAccountServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/RemoteUserAccountServiceConnector.cs index 348ad42..f6b6aeb 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/RemoteUserAccountServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/RemoteUserAccountServiceConnector.cs | |||
@@ -102,6 +102,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts | |||
102 | return; | 102 | return; |
103 | 103 | ||
104 | scene.RegisterModuleInterface<IUserAccountService>(this); | 104 | scene.RegisterModuleInterface<IUserAccountService>(this); |
105 | scene.RegisterModuleInterface<IUserAccountCacheModule>(m_Cache); | ||
105 | 106 | ||
106 | scene.EventManager.OnNewClient += OnNewClient; | 107 | scene.EventManager.OnNewClient += OnNewClient; |
107 | } | 108 | } |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs index 07c127e..05042f4 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs | |||
@@ -34,7 +34,7 @@ using log4net; | |||
34 | 34 | ||
35 | namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts | 35 | namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts |
36 | { | 36 | { |
37 | public class UserAccountCache | 37 | public class UserAccountCache : IUserAccountCacheModule |
38 | { | 38 | { |
39 | private const double CACHE_EXPIRATION_SECONDS = 120000.0; // 33 hours! | 39 | private const double CACHE_EXPIRATION_SECONDS = 120000.0; // 33 hours! |
40 | 40 | ||