页面代码:(用到的mui样式, 已使用cdn替换) <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-reva ...
分类:
Web程序 时间:
2020-04-01 15:01:13
阅读次数:
86
1. 安装 pip3 install django-redis 2. 配置(settings.py文件) CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", # 引擎 "TIMEOUT": 300, # 缓存超时时间 ...
分类:
其他好文 时间:
2020-04-01 13:17:47
阅读次数:
74
window安装,下一步下一步就行了,接下来是配置 创建好文件夹之后打开cmd 输入: npm config set prefix "D:\nodejs\node_global" 注意:这里的路径要改成你自己创建的文件夹的路径 npm config set cache "D:\nodejs\node ...
分类:
Web程序 时间:
2020-04-01 13:09:45
阅读次数:
79
什么是负载均衡在计算机的世界,这就是大家耳熟能详的负载均衡(load balancing),所谓负载均衡,就是说如果一组计算机节点(或者一组进程)提供相同的(同质的)服务,那么对服务的请求就应该均匀的分摊到这些节点上。这里的服务是广义的,可以是简单的计算,也可能是数据的读取或者存储。负载均衡也不是新 ...
分类:
其他好文 时间:
2020-04-01 12:58:04
阅读次数:
96
一般手机手动重装系统,都会要求手机三清,那是哪三,又怎么清除,看完你就会懂: 参考链接: https://zhidao.baidu.com/question/923111259598920379.html 手机三清需要进recovery模式,一般现在手机都是电源键+音量↑键或↓键进入 一、现在的新手 ...
分类:
移动开发 时间:
2020-04-01 01:18:53
阅读次数:
85
下载 http://nodejs.cn/download/ 2.解压并在目录下新建两个文件夹node_cache,node_global 3. 在根目录下启动cmd上输入 npm config set prefix "D:\nodeJs\node-v12.16.1-win-x64\node_glob ...
1. 静态引入 require(path:string) 一次引入,除非 delete require.cache,否则文件不会重新获取。 2. 动态引入 fs.readFileSync(path:string, encoding:string) JSON.parse(test: string) 获 ...
分类:
其他好文 时间:
2020-03-31 18:47:45
阅读次数:
70
binlog_format = ROW transaction-isolation="READ-COMMITTED" sync_binlog = 1 innodb_flush_log_at_trx_commit = 1 query_cache_size = 0 query_cache_type = ...
分类:
其他好文 时间:
2020-03-31 17:31:30
阅读次数:
101
Cache 缓存 引入缓存依赖 注解 | 名称 | 解释 | | | | | Cache | 缓存接口,定义缓存操作 | | CacheManager | 缓存管理器,管理各种缓存组件 | | @Cacheable | 缓存注解(方法调用前生效) | | @CacheEvict | 清空缓存(默认方 ...
分类:
编程语言 时间:
2020-03-31 01:06:27
阅读次数:
65
与缓存有关的请求头 | key | value | 说明 | | | | | | Cache Control | max age=0 | 客户端向服务器端表明,如果缓存过期了,但是过期时间还没有超过指定时间(以秒为单位),则直接返回304即可。 | | If Modified Since | Wed ...
分类:
其他好文 时间:
2020-03-30 19:24:34
阅读次数:
74