Skip to content

Commit

Permalink
fix : fix redis dataProtection value
Browse files Browse the repository at this point in the history
  • Loading branch information
jackehuang committed Nov 29, 2023
1 parent 3c934b0 commit d99b563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NewLife.Redis.Extensions/RedisXmlRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public RedisXmlRepository(Func<NewLife.Caching.Redis> redisFactory, String key)
private IEnumerable<XElement> GetAllElementsCore()
{
var rds = _redis ?? _redisFactory!();
var list = rds.GetList<String>(_key);
var list = rds.GetList<String>(_key) ?? [];
foreach (var item in list)
{
yield return XElement.Parse(item);
Expand Down

0 comments on commit d99b563

Please sign in to comment.