sharp bites

standing on the shoulders of giants

Ayende's Challenge #2: The directory tree

Here comes a new challenge.
Given a set of versioned file, you need to cache them locally. Note that IPersistentCache semantics means that if you put a value in it, is is always going to remain there.

I’m glad this one wasn’t on a real interview, it took me quite some time to get this right, I guess I wouldn’t have get the job this time. xD

You can download the source from here or see it below. :)