public R <ulong, LocalStr> GetClientDbIdByUid(string uid) { if (dbIdCache.TryGetValue(uid, out var dbid)) { return(dbid); } var result = tsFullClient.GetClientDbIdFromUid(uid); if (!result.Ok) { return(new LocalStr(strings.error_ts_no_client_found)); } dbIdCache.Set(result.Value.ClientUid, result.Value.ClientDbId); return(result.Value.ClientDbId); }