F. Shovels Shop time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output F. Shovels Shop time lim ...
分类:
其他好文 时间:
2019-04-21 17:26:06
阅读次数:
105
题目: E. Two Teams time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output E. Two Teams time limit ...
分类:
编程语言 时间:
2019-04-20 21:05:00
阅读次数:
117
D. Gourmet choice time limit per test 2 seconds memory limit per test 256 megabytes 题目链接: https://codeforces.com/problemset/problem/1131/D Discribe D. ...
分类:
其他好文 时间:
2019-04-20 09:45:10
阅读次数:
120
app('redis')->connection('default')->funnel('key000') // 每个资源最大锁定10秒自动过期,只有60个资源(并发),在3秒内获取不到锁抛出异常 ->releaseAfter(10)->limit(60)->block(3) ->then(func... ...
分类:
其他好文 时间:
2019-04-17 16:35:11
阅读次数:
122
浏览器的缓存规则是在 http 协议头和 html 页面的 meta 标签中定义的。主要分为两部分:强缓存和协商缓存。强缓存是指缓存的副本在有效期内,浏览器直接获取这个副本并渲染。强缓存主要涉及的 http 协议报头有:Expires,cache-control。 强缓存的过程:浏览器发起 http ...
分类:
其他好文 时间:
2019-04-14 09:54:46
阅读次数:
210
一、设置过期时间 expire key time(以秒为单位) -- 这是最常用的方式 setex(String key, int seconds, String value) -- 字符串独有的方式 注:除了字符串自己独有设置过期时间的方法外,其他数据类型都需要依靠expire方法来设置过期时间。 ...
分类:
其他好文 时间:
2019-04-12 23:11:19
阅读次数:
224
http://www.w3school.com.cn/jsref/jsref_getMinutes.asp 由 getMinutes() 返回的值是一个两位的数字。不过返回值不总是两位的,如果该值小于 10,则仅返回一位数字。 在公共方法 common.js中实现时间格式化函数,并处理了有时返回一位 ...
分类:
编程语言 时间:
2019-04-10 10:34:38
阅读次数:
168
E. Maximum Matching time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output E. Maximum Matching ...
分类:
其他好文 时间:
2019-04-09 16:32:02
阅读次数:
101
原文:Redis持久化机制Redis把数据存储在内存中,当进程退出后数据就会丢失。Redis持久化机制可以将内存中的数据存储到磁盘上,当重新启动时可以从磁盘文件中读取数据加载到内存中。 Redis支持两种持久化机制:全量镜像RDB和增量式持久化AOF。 RDB RDB是Redis的快照,存储了Red... ...
分类:
其他好文 时间:
2019-04-08 23:00:51
阅读次数:
264