| | |
| | | |
| | | import com.gitblit.Keys; |
| | | import com.gitblit.manager.INotificationManager; |
| | | import com.gitblit.manager.IPluginManager; |
| | | import com.gitblit.manager.IRepositoryManager; |
| | | import com.gitblit.manager.IRuntimeManager; |
| | | import com.gitblit.manager.IUserManager; |
| | |
| | | |
| | | public RedisTicketService( |
| | | IRuntimeManager runtimeManager, |
| | | IPluginManager pluginManager, |
| | | INotificationManager notificationManager, |
| | | IUserManager userManager, |
| | | IRepositoryManager repositoryManager) { |
| | | |
| | | super(runtimeManager, |
| | | pluginManager, |
| | | notificationManager, |
| | | userManager, |
| | | repositoryManager); |
| | |
| | | } |
| | | try { |
| | | Boolean exists = jedis.exists(key(repository, KeyType.journal, ticketId)); |
| | | return exists != null && !exists; |
| | | return exists != null && exists; |
| | | } catch (JedisException e) { |
| | | log.error("failed to check hasTicket from Redis @ " + getUrl(), e); |
| | | pool.returnBrokenResource(jedis); |