摘要: 步骤 1、下载安装Redis服务。 2、调用执行文件创建服务器以及测试缓存。 3、使用可视化工具redis-desktop-manager管理查询缓存。 1、下载安装Redis服务。 下载地址:https://github.com/dmajkic/redis/downloads 解压安装包如图: 启 阅读全文
posted @ 2018-10-24 18:57 样子2018 阅读(584) 评论(0) 推荐(0) 编辑
摘要: /// /// md5加密字符串 /// /// 需要加密的字符串 /// public static string getMd5String(string str) { //实例化一个md5对像 MD5 md5 = MD5.Cre... 阅读全文
posted @ 2018-10-24 12:31 样子2018 阅读(427) 评论(0) 推荐(0) 编辑
摘要: /** * 判断数组中是否包含某个值 * @param arr 数组 * @param str 值 * @returns {boolean} */ function contains(arr, str) { var i = arr.length-1; while (i--) { if (arr[i] 阅读全文
posted @ 2018-10-24 10:27 样子2018 阅读(4144) 评论(0) 推荐(0) 编辑
摘要: /** * @Description: * @Author: Yang * @param $the_time 需要转换的时间 * @return string */ function time_tran($the_time) { $show_time = strtotime($the_time); 阅读全文
posted @ 2018-10-24 10:23 样子2018 阅读(2854) 评论(0) 推荐(0) 编辑