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()
{
return !_memoryCache.Any();
}
///
/// Check to see if a key exists
///
///
/// Returns true if the key does not exist
internal bool IsEmpty(string key)
{
return !HasKey(key);
}
}
}