using System.Linq;
namespace IStation
{
internal sealed partial class SharedMemoryCache
{
///
/// Check to see if the memory cache is empty of keys
///
/// Returns true if there are no keys
public bool IsEmpty()
{
var keys = GetKeys();
return keys.Count < 1;
}
///
/// Check to see if a key exists
///
///
/// Returns true if the key does not exist
internal bool IsEmpty(string key)
{
return !HasKey(key);
}
}
}