BrakePedal.MemoryThrottleRepository.GetThrottleCount C# (CSharp) 메소드

GetThrottleCount() 공개 메소드

public GetThrottleCount ( IThrottleKey key, BrakePedal.Limiter limiter ) : long?
key IThrottleKey
limiter BrakePedal.Limiter
리턴 long?
        public long? GetThrottleCount(IThrottleKey key, Limiter limiter)
        {
            string id = CreateThrottleKey(key, limiter);

            var cacheItem = _store.Get(id) as ThrottleCacheItem;
            if (cacheItem != null)
            {
                return cacheItem.Count;
            }

            return null;
        }