I have a class in my project that queries a private server and returns a human readable username on being given an alphanumeric user ID. I implemented this as a class method.
I don’t want to query the server too much. I know this can be solved by implementing an instance method, but I really just want to use a class method. How can I implement a private cache of the user ID/username pairs, preferably using a NSMutableDictionary
?