public boolean unlock ( T jedis ) { final String currentLock = jedis . get ( redisSchema . lockKey ( ) ) ; if ( ! isNullOrEmpty ( currentLock ) && UUID . fromString ( currentLock ) . equals ( lockValue ) ) { // This is our lock. We can remove it. jedis . del ( redisSchema . lockKey ( ) ) ; return true ; } return false ; }
Attempt to remove lock