From e4c9b5bfb1d9000c08d84f2f044cd0c3605a2945 Mon Sep 17 00:00:00 2001
From: miyanhui <dennismi1024@gmail.com>
Date: 星期三, 13 二月 2019 14:17:13 +0800
Subject: [PATCH] 修复检测结果ImgKey不对应的问题

---
 QiaoJiaSystem/StructureApp/HiredisTool.h |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/QiaoJiaSystem/StructureApp/HiredisTool.h b/QiaoJiaSystem/StructureApp/HiredisTool.h
index b57e0ee..636cd2d 100644
--- a/QiaoJiaSystem/StructureApp/HiredisTool.h
+++ b/QiaoJiaSystem/StructureApp/HiredisTool.h
@@ -8,6 +8,7 @@
 struct ImgInfo
 {
     std::string time;
+    uint64_t  framePts;
     cv::Mat img;
 };
 
@@ -22,6 +23,10 @@
    // std::map<std::string,int> findAllCamera();
     bool clearAllImageBuf();
 
+    bool setKeyImage(const std::string& file_name,const cv::Mat& img);
+    void getKeyImage(const std::string& imageName,cv::Mat& img);
+
+
     bool pushImageBuf(const std::string& file_name,const cv::Mat& img);
     void getImage(const std::string& file_name,cv::Mat& img);
 
@@ -32,6 +37,7 @@
 
     bool delKey(const std::string& key);
     bool listRpop(const std::string& key,std::string& value);
+    bool listLpush(const std::string& key,const std::string& value);
     int  getSize(const std::string& key);
     bool hashDel(const std::string& tab,const std::string &key);
     bool hashSet(const std::string& tab,const std::string& key,const int& value);
@@ -40,9 +46,11 @@
 
     bool listLindex(const std::string& key,std::string& value);
 //    bool listRpop(const std::string& key,std::string& value);
-    bool listLpush(const std::string& key,const std::string& value);
-
-
+    //bool listLpush(const std::string& key,const std::string& value);
+    //Redis SET KEY VALUE cmd
+    bool setKeyValue(const std::string& key,const std::string& value);
+    //bool  GET KEY cmd
+    bool getKeyValue(const std::string& key,std::string& value);
     bool checkParam();
     bool checkResult(redisReply *reply);
     void init();

--
Gitblit v1.8.0