Last active
October 8, 2015 21:07
-
-
Save avnersorek/3c9b65cf31817efe5ad0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public User Get(string userId) { | |
User cachedUser = redisClient.GetUser(userId); | |
if (cachedUser !== null) return cachedUser; | |
else return mySqlClient.GetUser(userId); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment