The acent cash project is based on the idea of a l r u cash function. It can be used to set an ax size, time to live or any other kind of value. There are also custom support for accustomed types such as tupls and requst objects. The code has been written in C# but it's not very well known yet.