Search in sources :

Example 26 with RedisService

use of hry.redis.common.utils.RedisService in project benchmark by seelunzi.

the class PushData method pushNewListRecordMarketnewAdd.

/*     */
/*     */
public static void pushNewListRecordMarketnewAdd(String pustdata, String currencyType) {
    /* 100 */
    String key = currencyType + ":pushNewListRecordMarketnewAdd";
    /* 101 */
    RedisService redisService = (RedisService) ContextUtil.getBean("redisService");
    /* 102 */
    if (!"".equals(pustdata)) {
        /* 103 */
        redisService.save(key, pustdata);
    /*     */
    }
/*     */
}
Also used : RedisService(hry.redis.common.utils.RedisService)

Example 27 with RedisService

use of hry.redis.common.utils.RedisService in project benchmark by seelunzi.

the class PushData method pushEntrust.

/*     */
/*     */
public static void pushEntrust(String pustdata, String currencyType) /*     */
{
    /*  19 */
    String key = currencyType + ":pushEntrust";
    /*  20 */
    RedisService redisService = (RedisService) ContextUtil.getBean("redisService");
    /*  21 */
    String preData = redisService.get(key);
    /*  22 */
    if ((null == preData) || (!preData.equals(pustdata))) {
        /*  23 */
        redisService.save(key, pustdata);
    /*     */
    }
/*     */
}
Also used : RedisService(hry.redis.common.utils.RedisService)

Example 28 with RedisService

use of hry.redis.common.utils.RedisService in project benchmark by seelunzi.

the class PushData method pushNewListRecordMarketDesc.

/*     */
/*     */
public static void pushNewListRecordMarketDesc(String pustdata, String header) {
    /*  94 */
    String key = header + ":pushNewListRecordMarketDesc";
    /*  95 */
    RedisService redisService = (RedisService) ContextUtil.getBean("redisService");
    /*  96 */
    redisService.save(key, pustdata);
/*     */
}
Also used : RedisService(hry.redis.common.utils.RedisService)

Example 29 with RedisService

use of hry.redis.common.utils.RedisService in project benchmark by seelunzi.

the class PushData method pushEntrusMarket.

/*     */
/*     */
/*     */
/*     */
public static void pushEntrusMarket(String pustdata, String header) /*     */
{
    /*  50 */
    String key = header + ":pushEntrusMarket";
    /*  51 */
    RedisService redisService = (RedisService) ContextUtil.getBean("redisService");
    /*  52 */
    String preData = redisService.get(key);
    /*  53 */
    if ((null == preData) || (!preData.equals(pustdata))) {
        /*  54 */
        redisService.save(key, pustdata);
    /*     */
    }
/*     */
}
Also used : RedisService(hry.redis.common.utils.RedisService)

Aggregations

RedisService (hry.redis.common.utils.RedisService)29 ExOrderInfo (hry.trade.entrust.model.ExOrderInfo)4 RedisTradeService (hry.redis.common.utils.RedisTradeService)3 BigDecimal (java.math.BigDecimal)3 ExCointoCoin (hry.exchange.product.model.ExCointoCoin)1 ExEntrustService (hry.trade.entrust.service.ExEntrustService)1