mem-ruby: Use lookup function in cache