@EdsCache(key = constants.PAPER_SETTING_CACHE_PREFIX, expire = 120)
@EdsCacheNull(expire = 30)
public UserDTO getUserById(@EdsCacheKey Long id){
return paperDao.getById(paperId);
}
@EdsCache(key = constants.USER_CACHE_PREFIX, expire=60*60)
@EdsCacheNull(expire = 60)
@EdsCacheLocal(expire = 120)
@EdsCacheLocalNull(expire = 30)
public RoleDTO getRoleNull(@EdsCacheKey Long id){
return userDao.getRole(id);
}
@EdsCache(key = “papaer_setting", expire = constants.EXPIRE_SECOND)
@EdsCacheHash
@EdsCacheNull(expire = 60)
public String getPaperSetting(@EdsCacheKey Long paperId, @EdsCacheHashKey String settingKey){
return paperSettingDao.getSetting(paperId, settingKey);
}