<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using CacheCow.Common;
using CacheCow.Server.EntityTagStore.Memcached;
using Enyim.Caching;
using Enyim.Caching.Configuration;
using Enyim.Caching.Memcached;

namespace CacheCow.Server.EntityTagStore.Memcached12
{
    internal class MemcachedEntityTagStore12 : IEntityTagStore, IDisposable
    {

        private readonly MemcachedClient _memcachedClient;

        public MemcachedEntityTagStore12()
        {
            _memcachedClient = new MemcachedClient();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sectionName">Configuration section name</param>
        public MemcachedEntityTagStore12(string sectionName)
        {
            _memcachedClient = new MemcachedClient(sectionName);
        }


        public MemcachedEntityTagStore12(IMemcachedClientConfiguration configuration)
        {
            _memcachedClient = new MemcachedClient(configuration);
        }

        public bool TryGetValue(CacheKey key, out TimedEntityTagHeaderValue eTag)
        {<commit_msg>changing internal to public<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using CacheCow.Common;
using CacheCow.Server.EntityTagStore.Memcached;
using Enyim.Caching;
using Enyim.Caching.Configuration;
using Enyim.Caching.Memcached;

namespace CacheCow.Server.EntityTagStore.Memcached12
{
    public class MemcachedEntityTagStore12 : IEntityTagStore, IDisposable
    {

        private readonly MemcachedClient _memcachedClient;

        public MemcachedEntityTagStore12()
        {
            _memcachedClient = new MemcachedClient();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sectionName">Configuration section name</param>
        public MemcachedEntityTagStore12(string sectionName)
        {
            _memcachedClient = new MemcachedClient(sectionName);
        }


        public MemcachedEntityTagStore12(IMemcachedClientConfiguration configuration)
        {
            _memcachedClient = new MemcachedClient(configuration);
        }

        public bool TryGetValue(CacheKey key, out TimedEntityTagHeaderValue eTag)
        {
{'fraction_non_alphanumeric': 0.07698961937716263, 'fraction_numerical': 0.00865051903114187, 'mean_word_length': 2.9879310344827585, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7152586', 'n_tokens_mistral': 632, 'n_tokens_neox': 607, 'n_words': 125}