差点忘了最常用的String类型,我们对String的大多数方法都已经很熟了,这里就挑几个平时不会直接接触的点来解析一下. 先来看看它的成员变量 public final class String { private final char value[]; private int hash; // Default to 0 } string的内容其实就是一个char数组: hash字段缓存了string的哈希值,因为string经常作为hashmap的key,这样能提高性能: hashCode…
一.cinder-api服务入口 D:\code-program\cinder-codejuno\api\contrib\admin_actions.py from cinder import volume class VolumeAdminController(AdminController): """AdminController for Volumes.""" @wsgi.action('os-migrate_volume') def _m…
1.[基础]redis能带给我们什么福利 Redis(Remote Dictionary Server)官网:https://redis.io/ Redis命令:https://redis.io/commands Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structur…