Exemple #1
0
        public void Remove(string key)
        {
            _cache.RemoveObjectForKey(new NSString(key));
            ImageInformation imageInformation;

            _imageInformations.TryRemove(key, out imageInformation);
        }
        public void Remove(string key)
        {
            _logger.Debug(string.Format("Called remove from memory cache for '{0}'", key));
            _cache.RemoveObjectForKey(new NSString(key));
            ImageInformation imageInformation;

            _imageInformations.TryRemove(key, out imageInformation);
        }
        private void Remove(string key, bool log)
        {
            if (string.IsNullOrWhiteSpace(key))
            {
                return;
            }

            if (log && ImageService.Instance.Config.VerboseMemoryCacheLogging)
            {
                _logger.Debug(string.Format($"Remove from memory cache called for {key}"));
            }

            lock (_lock)
            {
                _cache.RemoveObjectForKey(new NSString(key));
                _imageInformations.TryRemove(key, out var imageInformation);
            }
        }
Exemple #4
0
 public void Remove(string key)
 {
     _cache.RemoveObjectForKey(new NSString(key));
 }