I am writing a cache gen-server for the company Use. I am wondering how to search an item from the list as I want the cost of the search for comparing various data structure
You can also use any from http://erlang.org/doc/man/lists.html#any-2
any
lists:any(fun(X) -> X == <<"yourthing">> end, YourList)
will return true if found or false otherwise.
true
false