InCerryGit / FasterKvCache

FasterKv.Cache is an in-process hybrid cache library (memory+disk) based on the Microsoft FasterKv.
MIT License
109 stars 17 forks source link

Maybe we could use `NET6_0_OR_GREATER` instead of `(NET6_0 || NET7_0) ` #4

Closed WeihanLi closed 1 year ago

WeihanLi commented 1 year ago

https://github.com/InCerryGit/FasterKvCache/blob/cbe15dbd93b9c76df7d2eb8d1c498ac06aea8a8c/src/FasterKv.Cache.Core/Configurations/FasterKvCacheOptions.cs#L51

https://github.com/InCerryGit/FasterKvCache/blob/cbe15dbd93b9c76df7d2eb8d1c498ac06aea8a8c/src/FasterKv.Cache.Core/Guards.cs#L21

Maybe we could use the NET6_0_OR_GREATER symbol instead

InCerryGit commented 1 year ago

https://github.com/InCerryGit/FasterKvCache/blob/cbe15dbd93b9c76df7d2eb8d1c498ac06aea8a8c/src/FasterKv.Cache.Core/Configurations/FasterKvCacheOptions.cs#L51

https://github.com/InCerryGit/FasterKvCache/blob/cbe15dbd93b9c76df7d2eb8d1c498ac06aea8a8c/src/FasterKv.Cache.Core/Guards.cs#L21

Maybe we could use the NET6_0_OR_GREATER symbol instead

Yes, you are right. use NET6_0_OR_GREATER is better.