Exemplo n.º 1
0
        private static long TestSqlCacheWrite(int length)
        {
            var client = new SqlMemoryCacheClient("cache");

            var sw = Stopwatch.StartNew();

            for (int i = 0; i < length; i++)
            {
                client.Store("asdfasdf" + i.ToString(), stringToTest);
            }

            sw.Stop();
            return sw.ElapsedMilliseconds;
        }