Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2226

How to read Redis Data in Laravel 5

$
0
0

Please I need help. This data is stored in Redis using Java Spring MVC

["com.qt.huobi.model.HbTradeOrderDetail",{"id":112,"uid":21,"type":1,"symbol":"xrpusdt","num":["java.math.BigDecimal",9.040000],"price":["java.math.BigDecimal",0.000000],"amount":["java.math.BigDecimal",5.000000],"rate":["java.math.BigDecimal",0.093769],"createTime":["java.util.Date",1616412790000],"status":2,"usetid":21,"bcNum":0}]

I have read the data with laravel using $redis = Redis::rpop('key') but I'm unable to access id, uid etc. I tried this lines

    $redis = Redis::rpop('mq');    $obj = json_decode($redis);    if($obj!= null){        $key = 'profit:'+ $obj->uid +':'+ $obj>id;        Redis::lpush($key, $redis);        Redis::expire($key, 60*60*24);    }

Please help me!!


Viewing all articles
Browse latest Browse all 2226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>