Used partial specialisation and inhertiance of LruCache to handle void ValueType.