在项目有个需求要保存一个字符串到redis,并设置一个过期时间。这个需求一看非常简单,使用redisTemplate一行代码搞定,代码如下 redisTemplate.opsForValue().set("userKey", data, 10000); 但保存后,查看redis发现value的前缀多 ...
分类:
其他好文 时间:
2020-06-17 18:26:25
阅读次数:
71
执行下面语句报1071 -Specified key was too long; max key length is 767 bytes CREATE table person( pid int not null UNIQUE, firstName VARCHAR(255) NOT NULL, la ...
分类:
其他好文 时间:
2020-06-16 20:19:57
阅读次数:
57
The GetModuleBaseName function retrieves the base name of the specified module.DWORD GetModuleBaseName(HANDLE hProcess, // handle to processHMODULE hM ...
分类:
其他好文 时间:
2020-06-15 17:25:04
阅读次数:
55
docker-compose gives ERROR: Cannot locate specified Dockerfile: Dockerfile Here is how to specify dockerfile. Sorry I cannot do it in comments as form ...
分类:
其他好文 时间:
2020-06-12 19:55:52
阅读次数:
209
man strace: strace - trace system calls and signals DESCRIPTIONIn the simplest case strace runs the specified command until it exits. It intercepts an ...
分类:
系统相关 时间:
2020-06-11 13:42:11
阅读次数:
73
At a lemonade stand, each lemonade costs $5. Customers are standing in a queue to buy from you, and order one at a time (in the order specified by bil ...
分类:
其他好文 时间:
2020-06-09 09:22:23
阅读次数:
54
一、修改配置文件 1.build->utils.js 增加 :publicPath:'../../' // Extract CSS when that option is specified // (which is the case during production build) if (opt ...
分类:
其他好文 时间:
2020-06-06 14:25:25
阅读次数:
86
年初时工班发现工作站和服务器都没办法用ntpq看时钟同步了,如下图所示。输入ntpq-p 就显示"The specified class was not found" 通过排查,发现中央服务器和工作站均出现,本地工作站部分有,2台NMS则完好,Linux机子也显示正常。由于系统对时钟要求很高,出现此 ...
分类:
其他好文 时间:
2020-06-05 00:26:23
阅读次数:
103
树形控件的结构体,LVITEMA structure typedef struct tagLVITEMA { UINT mask; int iItem; int iSubItem; UINT state; UINT stateMask; LPSTR pszText; int cchTextMax; ...
查阅API文档,找到 add():增加一个元素。如果队列已满,则抛出一个IIIegaISlabEepeplian异常 Inserts the specified element at the tail of this queue. As the queue is unbounded, this me ...
分类:
编程语言 时间:
2020-05-31 16:02:19
阅读次数:
84