Added functionality to cache user queries
Added userCache test to repo