mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-28 16:08:38 +00:00
Update Redis.OM to 0.2.1
This commit is contained in:
parent
3f1c80ebec
commit
84065db61c
2 changed files with 5 additions and 5 deletions
|
@ -21,7 +21,7 @@
|
|||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="6.0.1" />
|
||||
<PackageReference Include="Redis.OM" Version="0.1.9" />
|
||||
<PackageReference Include="Redis.OM" Version="0.2.1" />
|
||||
<PackageReference Include="SharpZipLib" Version="1.3.3" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
|
||||
<PackageReference Include="YamlDotNet" Version="11.2.1" />
|
||||
|
|
|
@ -17,15 +17,15 @@ public class RedisStorableList<T> : StorableList<T>
|
|||
this.redisNormalCollection.Insert(item);
|
||||
}
|
||||
|
||||
public override Task RemoveAsync(T item) => this.redisNormalCollection.Delete(item);
|
||||
public override Task RemoveAsync(T item) => this.redisNormalCollection.DeleteAsync(item);
|
||||
public override void Remove(T item)
|
||||
{
|
||||
this.redisNormalCollection.DeleteSync(item);
|
||||
this.redisNormalCollection.Delete(item);
|
||||
}
|
||||
|
||||
public override Task UpdateAsync(T item) => this.redisNormalCollection.Update(item);
|
||||
public override Task UpdateAsync(T item) => this.redisNormalCollection.UpdateAsync(item);
|
||||
public override void Update(T item)
|
||||
{
|
||||
this.redisNormalCollection.UpdateSync(item);
|
||||
this.redisNormalCollection.Update(item);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue