(refs #33)Use RequestCache instead of AccountService directly.

This commit is contained in:
takezoe
2013-07-18 15:55:59 +09:00
parent 000afa1ed6
commit c0713eaeda
2 changed files with 9 additions and 5 deletions

View File

@@ -22,5 +22,10 @@ trait RequestCache {
}
}
def getAccountByMailAddress(mailAddress: String)(implicit context: app.Context): Option[Account] = {
context.cache(s"account.${mailAddress}"){
new AccountService {}.getAccountByMailAddress(mailAddress)
}
}
}