mirror of
https://github.com/donnemartin/system-design-primer.git
synced 2025-12-14 17:08:56 +03:00
Update README-ja.md
This commit is contained in:
@@ -1172,7 +1172,7 @@ def get_user(self, user_id):
|
|||||||
if user is None:
|
if user is None:
|
||||||
user = db.query("SELECT * FROM users WHERE user_id = {0}", user_id)
|
user = db.query("SELECT * FROM users WHERE user_id = {0}", user_id)
|
||||||
if user is not None:
|
if user is not None:
|
||||||
key = "user.{0}".format(user_id)
|
key = f"user.{user_id}"
|
||||||
cache.set(key, json.dumps(user))
|
cache.set(key, json.dumps(user))
|
||||||
return user
|
return user
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user