Beispiel #1
0
        public IEnumerable <(TableCache table, int numRows)> RemoveRowsByLimit(CacheLimitType limitType, long amount)
        {
            foreach (var table in TableCaches)
            {
                var numRows = table.RemoveRowsByLimit(limitType, amount);

                if (numRows > 0)
                {
                    yield return(table, numRows);
                }
            }
        }
Beispiel #2
0
 public CacheLimitAttribute(CacheLimitType limitType, long amount)
 {
     LimitType = limitType;
     Amount    = amount;
 }