This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| authors: | |
| hanzou: | |
| name: Hanzou Hattori | |
| display_name: Hanzou | |
| gravatar: c66919cb194f96c696c1da0c47354a6a | |
| email: [email protected] | |
| web: http://company.com | |
| twitter: company | |
| github: hhattori | |
| jorgen: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- | |
| -- 2021-11-24: suggestion from comments: | |
| -- | |
| DECLARE @EmptyEmpty UNIQUEIDENTIFIER = CAST(0x0 AS UNIQUEIDENTIFIER) | |
| SELECT @EmptyEmpty | |
| -- | |
| -- Original | |
| -- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ConcurrentLeastFrequentlyUse<T> where T : class | |
| { | |
| private readonly int[] generationSizes; | |
| private readonly ConcurrentQueue<T>[] queues; | |
| public ConcurrentLeastFrequentlyUse(params int[] generationSizes) | |
| { | |
| this.generationSizes = generationSizes; | |
| queues =new ConcurrentQueue<T>[generationSizes.Length]; | |
| } |
NewerOlder