microsoft / FASTER

Fast persistent recoverable log and key-value store + cache, in C# and C++.

Home Page:https://aka.ms/FASTER

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

should we have a function ContainsKey for ClientSession? when we only check if item exists by key.

bmrxntfj opened this issue · comments

sorry, i make a mistake.
I have a scene that only check if item exists in cache. so i want a function like "bool ContainsKey(key)", but read a full data by Read of ClientSession and compare it like "session.Read(key)!=null".

you can just perform a Read and check it yourself. there is no performance advantage to ContainsKey, as compared to a Read.

you can just perform a Read and check it yourself. there is no performance advantage to ContainsKey, as compared to a Read.

thanks very much, i feel like it get performance advantage like others normal cache. I will study this code well. Thanks Again!!!