mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
Allow invalidating the users cache
This commit is contained in:
@@ -191,6 +191,11 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
return accounts;
|
||||
}
|
||||
|
||||
public void InvalidateCache(UUID userID)
|
||||
{
|
||||
m_accountCache.Remove(userID);
|
||||
}
|
||||
|
||||
public bool StoreUserAccount(UserAccount data)
|
||||
{
|
||||
// m_log.InfoFormat("[SIMIAN ACCOUNT CONNECTOR]: Storing user account for " + data.Name);
|
||||
|
||||
@@ -187,6 +187,10 @@ namespace OpenSim.Services.Connectors
|
||||
return accounts;
|
||||
}
|
||||
|
||||
public void InvalidateCache(UUID userID)
|
||||
{
|
||||
}
|
||||
|
||||
public virtual bool StoreUserAccount(UserAccount data)
|
||||
{
|
||||
Dictionary<string, object> sendData = new Dictionary<string, object>();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
|
||||
@@ -95,6 +95,11 @@ namespace OpenSim.Services.HypergridService
|
||||
return null;
|
||||
}
|
||||
|
||||
public void InvalidateCache(UUID userID)
|
||||
{
|
||||
m_UUIDCache.Remove(userID);
|
||||
}
|
||||
|
||||
public bool StoreUserAccount(UserAccount data)
|
||||
{
|
||||
return false;
|
||||
|
||||
@@ -189,5 +189,7 @@ namespace OpenSim.Services.Interfaces
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
bool StoreUserAccount(UserAccount data);
|
||||
|
||||
void InvalidateCache(UUID userID);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -256,6 +256,10 @@ namespace OpenSim.Services.UserAccountService
|
||||
return MakeUserAccount(d[0]);
|
||||
}
|
||||
|
||||
public void InvalidateCache(UUID userID)
|
||||
{
|
||||
}
|
||||
|
||||
public bool StoreUserAccount(UserAccount data)
|
||||
{
|
||||
// m_log.DebugFormat(
|
||||
|
||||
Reference in New Issue
Block a user