public void AddCharacterOnline(int id) { if (IsCharacterOnline(id)) { return; } var key = CenterKeys.GetCharacterKey(id); m_db.StringSet( key, "", when: When.Always, flags: CommandFlags.FireAndForget ); }
public void AddAccountOnline(int id) { var key = CenterKeys.GetAccountKey(id); if (IsAccountOnline(id)) { return; } m_db.StringSet( key, "", when: When.Always, flags: CommandFlags.FireAndForget ); }
public void AddCharacterCSITC(int id) { if (IsCharacterCSITC(id)) { return; } var key = CenterKeys.GetCSITCKey(id); m_db.StringSet( key, "", expiry: MigrateExpiry, when: When.Always, flags: CommandFlags.FireAndForget ); }
public bool IsCharacterMigrate(int id) { var key = CenterKeys.GetMigrateKey(id); return(m_db.KeyExists(key)); }
public void RemoveCharacterOnline(int id) { var key = CenterKeys.GetCharacterKey(id); m_db.KeyDelete(key, CommandFlags.FireAndForget); }
public bool IsCharacterOnline(int id) { var key = CenterKeys.GetCharacterKey(id); return(m_db.KeyExists(key)); }
public void RemoveAccountOnline(int id) { var key = CenterKeys.GetAccountKey(id); m_db.KeyDelete(key, CommandFlags.FireAndForget); }
public bool IsAccountOnline(int id) { var key = CenterKeys.GetAccountKey(id); return(m_db.KeyExists(key)); }