src/main/java/com/redislabs/quartz/RedisJobStore.java
/**
	 * Removes the calendar from redis.
	 *
	 * @param calName the calendar name
	 * @param jedis thread-safe redis connection
	 * @throws JobPersistenceException
	 */
Removes the calendar from redis.
@param calName the calendar name
@param jedis thread-safe redis connection
@throws JobPersistenceException
Removes the calendar from redis . @param calName the calendar name @param jedis thread - safe redis connection @throws JobPersistenceException
private void removeCalendar(String calName, Jedis jedis)
			throws JobPersistenceException {
		String calendarHashKey = createCalendarHashKey(calName);
		String calendarTriggersSetkey = createCalendarTriggersSetKey(calName);
		if (jedis.scard(calendarTriggersSetkey) > 0)
			throw new JobPersistenceException("there are triggers pointing to: " + calendarHashKey + ", calendar can't be removed");			
		jedis.del(calendarHashKey);
		jedis.srem(CALENDARS_SET, calendarHashKey);
	}
private void removeCalendar ( String calName , Jedis jedis ) throws JobPersistenceException { String calendarHashKey = createCalendarHashKey ( calName ) ; String calendarTriggersSetkey = createCalendarTriggersSetKey ( calName ) ; if ( jedis . scard ( calendarTriggersSetkey ) > 0 ) throw new JobPersistenceException ( "there are triggers pointing to: " + calendarHashKey + ", calendar can't be removed" ) ; jedis . del ( calendarHashKey ) ; jedis . srem ( CALENDARS_SET , calendarHashKey ) ; }
Removes the calendar from redis.
Removes the calendar from redis .
// checking if there are triggers pointing to this calendar // removing the calendar