public static void doEnqueue ( final Jedis jedis , final String namespace , final String queue , final String jobJson ) { jedis . sadd ( JesqueUtils . createKey ( namespace , QUEUES ) , queue ) ; jedis . rpush ( JesqueUtils . createKey ( namespace , QUEUE , queue ) , jobJson ) ; }
Helper method that encapsulates the minimum logic for adding a job to a queue .