Fix a poorly-mirrored cache delete operation.
This commit is contained in:
		
							parent
							
								
									6adcebb247
								
							
						
					
					
						commit
						c745fe7778
					
				| 
						 | 
					@ -131,7 +131,7 @@ public class UsernamesManager {
 | 
				
			||||||
      cacheCluster.useWriteCluster(connection -> {
 | 
					      cacheCluster.useWriteCluster(connection -> {
 | 
				
			||||||
        final RedisAdvancedClusterAsyncCommands<String, String> asyncCommands = connection.async();
 | 
					        final RedisAdvancedClusterAsyncCommands<String, String> asyncCommands = connection.async();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        maybeOldUsername.ifPresent(asyncCommands::del);
 | 
					        maybeOldUsername.ifPresent(oldUsername -> asyncCommands.del(getUsernameMapKey(oldUsername)));
 | 
				
			||||||
        asyncCommands.set(uuidMapKey, username);
 | 
					        asyncCommands.set(uuidMapKey, username);
 | 
				
			||||||
        asyncCommands.set(usernameMapKey, uuid.toString());
 | 
					        asyncCommands.set(usernameMapKey, uuid.toString());
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue