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); } } }
public CacheLimitAttribute(CacheLimitType limitType, long amount) { LimitType = limitType; Amount = amount; }