posts - 19 , comments - 8 , trackbacks - 0


A timeout dictionary in C#
Overview My use case was a authentication system which stored user details. Fetching this information was expensive, so it was decided to only do this if the record was older than 15 minutes. The following code implements a dictionary were the values "timeout" after a given time period. The timeout dictionary The following code implements the dictionary. The constructor takes a date time provider which you can find in a previous post. This allows me to pass in a faster implementation of DateTime, ......

Posted On Friday, December 19, 2014 9:17 AM | Comments (1) | Filed Under [ C# TimeoutDictionary ]

Powered by: