public static CacheElement Get(ICacheIdentifier cacheIdentifier)
        {
            // Get the cached value from the identifier.
            foreach (var element in _cacheElements)
            {
                if (element.Identifier.Matches(cacheIdentifier))
                {
                    return(element);
                }
            }

            // If the cached value does not exist, create it.
            var newElement = new CacheElement(cacheIdentifier);

            _cacheElements.Add(newElement);
            return(newElement);
        }
 // Removes a cached value.
 public static void RemoveElement(CacheElement element) => _cacheElements.Remove(element);