一、weak_ptr出现的意义 上一节提到过shared_ptr,它会自动释放“不再需要使用的对象”的相应的资源,但是它不是万能的,在某些时候(比如说循环引用),它会显得力不从心,这就是weak_ptr出现的意义; 1.1 weak_ptr 使用特性 weak_ptr也是一个模板,只提供能接受一个s ...
分类:
编程语言 时间:
2019-11-03 18:12:11
阅读次数:
113
1、配置文件 classpath路径下,新建redis.properties配置文件 配置文件内容 # Redis settings redis.host=127.0.0.1 redis.port=6379 redis.timeout=10000 redis.maxIdle=300 redis.ma ...
分类:
数据库 时间:
2019-11-02 13:43:34
阅读次数:
107
SharedPreferences 会在应用包目录中生成一个xml文件,将数据保存在里面 可以实现数据持久性保存。 创建的数据,保存在 Data -> Data -> 包名 -> shared_prefs 文件夹中 实例化接口的时候: 1. 不指定文件名,直接保存在 MainActivity.xml ...
分类:
移动开发 时间:
2019-11-02 12:00:36
阅读次数:
93
如图所示,需要实现点击一个按钮,跳转到指定网页: ...
分类:
移动开发 时间:
2019-11-01 18:22:55
阅读次数:
126
The following will configure the Shared Folders clients with the default options: For VMware Tools Shared Folders kernel mode client use the following ...
分类:
系统相关 时间:
2019-11-01 14:42:41
阅读次数:
311
# Spring Cache 手动清Redis缓存 ## 注册cacheRedisTemplate 将 cache 的 RedisTemplate 注册为Bean ```java @Bean(name = "cacheRedisTemplate") public RedisTemplate cach... ...
分类:
编程语言 时间:
2019-10-31 13:33:12
阅读次数:
153
Nginx 配置二级虚拟目录访问 Laravel 后台重写
分类:
其他好文 时间:
2019-10-30 19:56:31
阅读次数:
158
Jedis api 在线网址:http://tool.oschina.net/uploads/apidocs/redis/clients/jedis/Jedis.html redisson 官网地址:https://redisson.org/ redisson git项目地址:https://git ...
分类:
其他好文 时间:
2019-10-28 14:48:36
阅读次数:
180
该对象上下文实例已被释放,不能用于需要连接的操作。 shared context per request模式,缩短Entity实例的存在时间和降低Entity实例的共享性,并考虑性能,因为Entity需要手动Dispose。 不能使用单例模式,静态方法就可以。 ...
Match the explantions in Column B with words and expressions in Column A.(搭配每组中同意以的词或短语) A B 交换机 IP 路由器 IDPS 组件 Switch 传输控制协议 Router 互联网协议 Component 万 ...
分类:
其他好文 时间:
2019-10-27 20:44:09
阅读次数:
102