<commit_before>﻿using System;
using System.Collections.Generic;

namespace StackExchange.Opserver.Data.SQL
{
    public partial class SQLInstance
    {
        private Cache<List<TraceFlagInfo>> _traceFlags;
        public Cache<List<TraceFlagInfo>> TraceFlags => _traceFlags ?? (_traceFlags = SqlCacheList<TraceFlagInfo>(60*60));

        public class TraceFlagInfo : ISQLVersionedObject
        {
            // This likely works fine on 6+, need to test
            public Version MinVersion => SQLServerVersions.SQL2000.RTM;

            public int TraceFlag { get; internal set; }
            public bool Enabled { get; internal set; }
            public bool Global { get; internal set; }
            public int Session { get; internal set; }<commit_msg>Lower TraceFlags cache duration to 5 min<commit_after>﻿using System;
using System.Collections.Generic;

namespace StackExchange.Opserver.Data.SQL
{
    public partial class SQLInstance
    {
        private Cache<List<TraceFlagInfo>> _traceFlags;
        public Cache<List<TraceFlagInfo>> TraceFlags => _traceFlags ?? (_traceFlags = SqlCacheList<TraceFlagInfo>(5*60));

        public class TraceFlagInfo : ISQLVersionedObject
        {
            // This likely works fine on 6+, need to test
            public Version MinVersion => SQLServerVersions.SQL2000.RTM;

            public int TraceFlag { get; internal set; }
            public bool Enabled { get; internal set; }
            public bool Global { get; internal set; }
            public int Session { get; internal set; }
{'fraction_non_alphanumeric': 0.08020698576972833, 'fraction_numerical': 0.01164294954721863, 'mean_word_length': 2.800982800982801, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '2133420', 'n_tokens_mistral': 408, 'n_tokens_neox': 387, 'n_words': 126}