/// <summary> /// Puts a cert collection value in the cache with the specified subjectName as the key. /// </summary> public void Put(string subjectName, X509Certificate2Collection value) { if (m_cache != null) { // No value for the key. Check if we negative caching is enabled. if (value.IsNullOrEmpty()) { if (!m_settings.NegativeCache) { return; } value = new X509Certificate2Collection(); } string key = subjectName.ToLower(); m_cache.Put(key, value, new TimeSpan(0, 0, m_settings.CacheTTLSeconds.Value)); } }