redis接口及测试程序

by majiea 2016.12.22 14:51

注:脚本执行有风险,对于客户正式环境请在研发指导下执行。

redisTest.rar (264.78 kb)

当前redis开发接口

     //插入信息
        public static Int32 PushMessageToRedisStore(string EnterpriseID,string ReceiveManID, string info)
        {
            return Client.RPush(EnterpriseID + SpliteString+ReceiveManID, info);
        }

        //按照接收人获取未读消息信息
        public static List<string> GetMessageFromRedisCache(string EnterpriseID,string ReceiveManID)
        {
            return Client.GetAllItemsFromList(EnterpriseID + SpliteString + ReceiveManID);
        }

 

ReceiveManID 作为用户ID 已经被消息弹出功能 占用(key占用)

其他人可以存储其他内容,然后读取,接口实现为队列机制

Tags:

评论 (2) -

Z 74 美国 wrote at 2017/4/13 22:22:07 #

Uber, a US-based transport system financed by buyers, is presently stated to be worth close to $10 billion and works in more than 50 nations.

https://google.com 美国 wrote at 2017/4/13 22:22:17 #

The tool is tightly integrated with the web site. Hence, while you search for something on the website, the result page will show results from your PC (if any) and the web.

添加评论



biuquote
微笑得意调皮害羞酷大笑惊讶发呆喜欢可怜尴尬闭嘴噘嘴皱眉伤心抓狂呕吐坏笑漫骂发怒
Loading


RecentComments

评论 RSS

Statistics

989 篇文章
0 个单页
653498 条评论
11 次评分
233752 次访问
访问统计开始于 2019年12月15日
平均日访问 5436 次
当前 97 人在线