在列表尾部插入值 127.0.0.1:6379> rpush key value-1 (integer) 4 127.0.0.1:6379> rpush key value-2 (integer) 5 127.0.0.1:6379> lrange key 0 -1 1) "value3" 2) "value2" 3) "value1" 4) "value-1" 5) "value-2" 3. 0 127.0.0.1:6379> lrange key 0 -1 1) "value4" 2) "value3" 3) "value2" 4) "value1" 5) "value-1" 6) "value 7 127.0.0.1:6379> lrange key 0 -1 1) "value4" 2) "value3" 3) "value2" 4) "value1" 5) "value-1" 6) "value -2" 127.0.0.1:6379> lrem key -1 value-2 (integer) 1 127.0.0.1:6379> lrange key 0 -1 1) "after-value4"
559 示例configmap apiVersion: v1 data: app.properties: | property.1 = value-1 property.2 = value config# cat app.properties ##说明key:app.properties的path项用文件名相当于没有起任何作用 property.1 = value-1 property.2 = value : app.properties root@testvolume:/etc/config# cat app.properties property.1 = value-1 property.2 = value root@testvolume:/etc/config/app.properties# cat app-properties property.1 = value-1 property.2 = value app-properties --- root@testvolume:/etc/config# cat app.properties property.1 = value-1 property.2 = value
map = new HashMap<String, String>(); map.put("key1", "value-1"); map.put("key2", "value map = new HashMap<String, String>(); map.put("key1", "value-1"); map.put("key2", "value
点击wp_posts表,然后进入sql,选update UPDATE `wp_posts` SET `ID`=[value-1],`post_author`=[value-2],`post_date`=
root@k8smaster01 study]# echo -n "value-1" | base64 dmFsdWUtMQ== [root@k8smaster01 study]# echo -n "value foo/username value-1 [root@k8smaster01 study]# kubectl exec -ti mypod -n myns cat /etc/foo/password value
hbase>put 'testtable','myrow-1','colfam1:q1','value-1' hbase>put 'testtable','myrow-2','colfam1:q2','value hbase>scan 'testtable' hbase>put 'testtable','myrow-1','colfam1:q1','value-2' hbase>scan 'testtable' myrow-1','colfam2:x1','value-1' hbase>scan 'testtable' hbase>put 'testtable','myrow-1','colfam2:x1','value
<input type="submit" name="action" value="Value-1"> <input type="submit" name="action" value="<em>Value-2</em>
namespace: default data: data.1: hello data.2: world config: | property.1=value-1 property.2=value
>{ Jedis jedis=(Jedis)connection.getNativeConnection(); String s=jedis.set("key-2","value
: | [mysqld] log-bin = mysql-bin app.properties: | property.1 = value-1 property.2 = value
key-1=value-1&key-2=value-2…&key-n=value-n 2.2 隐藏域 利用隐藏域来保持状态,与採用网址重写技术类似。
producer = new KafkaProducer<>(props); String topic = "my-topic"; String key = "key-2"; String value = "value
namespace: default data: data.1: hello data.2: world config: | property.1=value-1 property.2=value
property defined using --from-file example.property.file: |- property.1=value-1 property.2=value
Docker registry 开发者可以任意定义Secret的格式和内容,现在创建一个假设Opaque Secret,比如应用要使用账号密码: username: value-1 password: value 运行后查看: $ kubectl exec mypod ls /etc/foo password username $ kubectl exec mypod cat /etc/foo/password value
System.out.println("数组长度:"+weakHashMap.size() + ",输出结果:" + weakHashMap); } 输出结果: 数组长度:3,输出结果:{key-2=value
key:value; $map:( key1:value1, key2:( key-1:value-1, key-2:value
值得注意的是,几乎所有属性都是key-value形式存储,如xxx.yyyy.zzzzz=value、xxx.yyyy[0].zzzzz=value-1、xxx.yyyy[1].zzzzz=value-
<expr> with <target-1> as <value-1> [with <target-2> as <value-2> [...]]
public static void main(String[] args) throws Exception { TTL1.set("VALUE-1"); TTL2.set("VALUE