细节调整
This commit is contained in:
		
							parent
							
								
									a32912a460
								
							
						
					
					
						commit
						41df54cebc
					
				| 
						 | 
				
			
			@ -44,7 +44,7 @@ namespace LY.App.Common.Redis
 | 
			
		|||
        /// </summary>
 | 
			
		||||
        /// <param name="pattern"></param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        public async Task<List<RedisKey>> GetAllKeysAsync(string pattern)
 | 
			
		||||
        public  Task<List<RedisKey>> GetAllKeysAsync(string pattern)
 | 
			
		||||
        {
 | 
			
		||||
            var redis = _db.Multiplexer;
 | 
			
		||||
            var keys = new List<RedisKey>();
 | 
			
		||||
| 
						 | 
				
			
			@ -59,7 +59,7 @@ namespace LY.App.Common.Redis
 | 
			
		|||
                var scanKeys = server.Keys(pattern: pattern, pageSize: 1000);
 | 
			
		||||
                keys.AddRange(scanKeys);
 | 
			
		||||
            }
 | 
			
		||||
            return keys;
 | 
			
		||||
            return Task.FromResult(keys);
 | 
			
		||||
            //var result = new Dictionary<string, string>();
 | 
			
		||||
 | 
			
		||||
            //if (keys.Count > 0)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue