tangxu
2024-03-09 ebe1b29ddb5ad27698487cd830b42a042ff28c3a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace IStation
{
    internal sealed partial class SharedMemoryCache
    {
        /// <summary>
        /// See if the cache contains a specific cache key
        /// </summary>
        /// <param name="key">the cache key to look for</param>
        /// <returns>true if the supplied cache key was found</returns>
        public bool HasKey(string key)
        {
            return this._memoryCache[key] != null;
        }
    }
}