/// <summary>
        /// Updates the tags.
        /// </summary>
        /// <param name="client">The client.</param>
        /// <param name="key">The key.</param>
        /// <param name="tags">The tags.</param>
        public void UpdateTags(RedisClient client, string key, IEnumerable <string> tags)
        {
            var cacheItem = _cacheItemFactory.Create(
                key: key,
                tags: tags == null ? null :  tags.ToList()
                );

            UpdateTags(client, cacheItem);
        }
Esempio n. 2
0
        private IRedisCacheItem <T> Create <T>(T value, string key, DateTime expires, IEnumerable <string> tags)
        {
            var tagsList = tags == null ? null : tags.ToList();

            var item = _cacheItemFactory.Create(
                key: key,
                tags: tagsList,
                expires: expires,
                value: value
                );

            return(item);
        }