This project is read-only.

second invoke of the method before create key cache

Sep 16, 2010 at 8:14 AM

Hello! Thanks for your instrument. But:


 static void Main(string[] args)        


 ICache cache = new Cache();          

 DateTime time = cache.Get("time", () => getTime(DateTime.Now), TimeSpan.FromSeconds(10));                       



static DateTime getTime(DateTime dateTime)      


Console.WriteLine("Invoked method getTime()");          

return dateTime;        



"Invoked method getTime()" will be written 2 count. How resolve this problem?

Sep 24, 2010 at 8:28 PM

I have pushed a fix to the trunk now.

Just pull from the repo and build.



Sep 24, 2010 at 8:44 PM

To save you some time (not having to pull from the repo) I have created a new release...... RC1 which can now be downloaded.

I am not really working on this project anymore but do not mind fixing bugs. Please feel free to contact me via if you have any issues.