当前位置: 首页 > news >正文

css网站元素设计品牌策划是做什么的

css网站元素设计,品牌策划是做什么的,什么公司时候做网站,wordpress隐藏版权文章目录 前言1.RedisTemplate常用方法2.String类型3.Hash类型4.List类型5.Set类型6.zSet类型 前言 RedisTemplate常用方法String类型Hash类型List类型Set类型zSet类型 Redis常用的数据类型:String、Hash、List、Set、zSet 1.RedisTemplate常用方法 redisTempla…

文章目录

  • 前言
  • 1.RedisTemplate常用方法
  • 2.String类型
  • 3.Hash类型
  • 4.List类型
  • 5.Set类型
  • 6.zSet类型

前言

  1. RedisTemplate常用方法
  2. String类型
  3. Hash类型
  4. List类型
  5. Set类型
  6. zSet类型

Redis常用的数据类型:String、Hash、List、Set、zSet

1.RedisTemplate常用方法

redisTemplate.hasKey(key);				//判断是否有key所对应的值,有则返回true,没有则返回false
redisTemplate.opsForValue().get(key);	//有则取出key值所对应的值
redisTemplate.delete(key);				//删除单个key值
redisTemplate.delete(keys); 			//其中keys:Collection<K> keys
redisTemplate.dump(key);				//将当前传入的key值序列化为byte[]类型
redisTemplate.expire(key, timeout, unit);	//设置过期时间
redisTemplate.expireAt(key, date);		//设置过期时间
redisTemplate.keys(pattern);			//查找匹配的key值,返回一个Set集合类型
redisTemplate.rename(oldKey, newKey);	//返回传入key所存储的值的类型
redisTemplate.renameIfAbsent(oldKey, newKey);	//如果旧值存在时,将旧值改为新值
redisTemplate.randomKey();				//从redis中随机取出一个key
redisTemplate.getExpire(key);			//返回当前key所对应的剩余过期时间
redisTemplate.getExpire(key, unit);		//返回剩余过期时间并且指定时间单位
redisTemplate.persist(key);				//将key持久化保存
redisTemplate.move(key, dbIndex);		//将当前数据库的key移动到指定redis中数据库当中

2.String类型

ValueOperations opsForValue = redisTemplate.opsForValue();opsForValue.set(key, value);	//设置当前的key以及value值
opsForValue.set(key, value, offset);//用 value 参数覆写给定 key 所储存的字符串值,从偏移量 offset 开始
opsForValue.set(key, value, timeout, unit);	 //设置当前的key以及value值并且设置过期时间
opsForValue.setBit(key, offset, value);	//将二进制第offset位值变为value
opsForValue.setIfAbsent(key, value);//重新设置key对应的值,如果存在返回false,否则返回true
opsForValue.get(key, start, end);	//返回key中字符串的子字符
opsForValue.getAndSet(key, value);	//将旧的key设置为value,并且返回旧的key
opsForValue.multiGet(keys);			//批量获取值
opsForValue.size(key);				//获取字符串的长度
opsForValue.append(key, value);	//在原有的值基础上新增字符串到末尾
opsForValue.increment(key,double increment);//以增量的方式将double值存储在变量中
opsForValue.increment(key,long  increment);	//通过increment(K key, long delta)方法以增量方式存储long值(正值则自增,负值则自减)Map valueMap = new HashMap();  
valueMap.put("valueMap1","map1");  
valueMap.put("valueMap2","map2");  
valueMap.put("valueMap3","map3");  
opsForValue.multiSetIfAbsent(valueMap); 	//如果对应的map集合名称不存在,则添加否则不做修改
opsForValue.multiSet(valueMap);				//设置map集合到redis

3.Hash类型

HashOperations opsForHash = redisTemplate.opsForHash();opsForHash.get(key, field);	//获取变量中的指定map键是否有值,如果存在该map键则获取值,没有则返回null
opsForHash.entries(key);	//获取变量中的键值对
opsForHash.put(key, hashKey, value);	//新增hashMap值
opsForHash.putAll(key, maps);	//以map集合的形式添加键值对
opsForHash.putIfAbsent(key, hashKey, value);	//仅当hashKey不存在时才设置
opsForHash.delete(key, fields);	//删除一个或者多个hash表字段
opsForHash.hasKey(key, field);	//查看hash表中指定字段是否存在
opsForHash.increment(key, field, long increment);	//给哈希表key中的指定字段的整数值加上增量increment
opsForHash.increment(key, field, double increment);	//给哈希表key中的指定字段的整数值加上增量increment
opsForHash.keys(key);				//获取所有hash表中字段
opsForHash.values(key);				//获取hash表中存在的所有的值
opsForHash.scan(key, options);		//匹配获取键值对,ScanOptions.NONE为获取全部键对

4.List类型

ListOperations opsForList = redisTemplate.opsForList();opsForList.index(key, index);	//通过索引获取列表中的元素
opsForList.range(key, start, end);	//获取列表指定范围内的元素(start开始位置, 0是开始位置,end 结束位置, -1返回所有)
opsForList.leftPush(key, value);	//存储在list的头部,即添加一个就把它放在最前面的索引处
opsForList.leftPush(key, pivot, value);		//如果pivot处值存在则在pivot前面添加
opsForList.leftPushAll(key, value);		//把多个值存入List中(value可以是多个值,也可以是一个Collection value)
opsForList.leftPushIfPresent(key, value);	//List存在的时候再加入
opsForList.rightPush(key, value);	//按照先进先出的顺序来添加(value可以是多个值,或者是Collection var2)
opsForList.rightPushAll(key, value);	//在pivot元素的右边添加值
opsForList.set(key, index, value);		//设置指定索引处元素的值
opsForList.trim(key, start, end);		//将List列表进行剪裁
opsForList.size(key);	//获取当前key的List列表长度//移除并获取列表中第一个元素(如果列表没有元素会阻塞列表直到等待超时或发现可弹出元素为止)
opsForList.leftPop(key);				
opsForList.leftPop(key, timeout, unit);	//移除并获取列表最后一个元素
opsForList.rightPop(key);
opsForList.rightPop(key, timeout, unit);	//从一个队列的右边弹出一个元素并将这个元素放入另一个指定队列的最左边
opsForList.rightPopAndLeftPush(sourceKey, destinationKey);	
opsForList.rightPopAndLeftPush(sourceKey, destinationKey, timeout, unit);//删除集合中值等于value的元素(index=0, 删除所有值等于value的元素; index>0, 从头部开始删除第一个值等于value的元素; index<0, 从尾部开始删除第一个值等于value的元素)
opsForList.remove(key, index, value);

5.Set类型

SetOperations opsForSet = redisTemplate.opsForSet();opsForSet.add(key, values);			//添加元素
opsForSet.remove(key, values);		//移除元素(单个值、多个值)
opsForSet.pop(key);					//删除并且返回一个随机的元素
opsForSet.size(key);				//获取集合的大小
opsForSet.isMember(key, value);		//判断集合是否包含value
opsForSet.intersect(key, otherKey);	//获取两个集合的交集(key对应的无序集合与otherKey对应的无序集合求交集)
opsForSet.intersect(key, otherKeys);//获取多个集合的交集(Collection var2)
opsForSet.intersectAndStore(key, otherKey, destKey);	//key集合与otherKey集合的交集存储到destKey集合中(其中otherKey可以为单个值或者集合)
opsForSet.intersectAndStore(key, otherKeys, destKey);	//key集合与多个集合的交集存储到destKey无序集合中
opsForSet.union(key, otherKeys);	//获取两个或者多个集合的并集(otherKeys可以为单个值或者是集合)
opsForSet.unionAndStore(key, otherKey, destKey);	//key集合与otherKey集合的并集存储到destKey中(otherKeys可以为单个值或者是集合)
opsForSet.difference(key, otherKeys);	//获取两个或者多个集合的差集(otherKeys可以为单个值或者是集合)
opsForSet.differenceAndStore(key, otherKey, destKey);	//差集存储到destKey中(otherKeys可以为单个值或者集合)
opsForSet.randomMember(key);	//随机获取集合中的一个元素
opsForSet.members(key);			//获取集合中的所有元素
opsForSet.randomMembers(key, count);	//随机获取集合中count个元素
opsForSet.distinctRandomMembers(key, count);	//获取多个key无序集合中的元素(去重),count表示个数
opsForSet.scan(key, options);	//遍历set类似于Interator(ScanOptions.NONE为显示所有的)

6.zSet类型

ZSetOperations提供了一系列方法对有序集合进行操作
ZSetOperations opsForZSet = redisTemplate.opsForZSet();opsForZSet.add(key, value, score);				//添加元素(有序集合是按照元素的score值由小到大进行排列)
opsForZSet.remove(key, values);					//删除对应的value,value可以为多个值
opsForZSet.incrementScore(key, value, delta);	//增加元素的score值,并返回增加后的值
opsForZSet.rank(key, value);					//返回元素在集合的排名,有序集合是按照元素的score值由小到大排列
opsForZSet.reverseRank(key, value);				//返回元素在集合的排名,按元素的score值由大到小排列
opsForZSet.reverseRangeWithScores(key, start,end);	//获取集合中给定区间的元素(start 开始位置,end 结束位置, -1查询所有)
opsForZSet.reverseRangeByScore(key, min, max);	//按照Score值查询集合中的元素,结果从小到大排序
opsForZSet.reverseRangeByScoreWithScores(key, min, max);	//返回值为:Set<ZSetOperations.TypedTuple<V>>
opsForZSet.count(key, min, max);				//根据score值获取集合元素数量
opsForZSet.size(key);							//获取集合的大小
opsForZSet.zCard(key);							//获取集合的大小
opsForZSet.score(key, value);					//获取集合中key、value元素对应的score值
opsForZSet.removeRange(key, start, end);		//移除指定索引位置处的成员
opsForZSet.removeRangeByScore(key, min, max);	//移除指定score范围的集合成员
opsForZSet.unionAndStore(key, otherKey, destKey);//获取key和otherKey的并集并存储在destKey中(其中otherKeys可以为单个字符串或者字符串集合)
opsForZSet.intersectAndStore(key, otherKey, destKey);	//获取key和otherKey的交集并存储在destKey中(其中otherKeys可以为单个字符串或者字符串集合)

文章转载自:
http://hyperon.rzgp.cn
http://board.rzgp.cn
http://shagbark.rzgp.cn
http://dissent.rzgp.cn
http://dermal.rzgp.cn
http://couldst.rzgp.cn
http://corner.rzgp.cn
http://orderless.rzgp.cn
http://glower.rzgp.cn
http://cybernetic.rzgp.cn
http://podagric.rzgp.cn
http://wedding.rzgp.cn
http://quasimolecule.rzgp.cn
http://seismonastic.rzgp.cn
http://largely.rzgp.cn
http://circumvallation.rzgp.cn
http://occlusor.rzgp.cn
http://chalcid.rzgp.cn
http://foa.rzgp.cn
http://unbitter.rzgp.cn
http://sycamine.rzgp.cn
http://dialogue.rzgp.cn
http://colliery.rzgp.cn
http://trefoiled.rzgp.cn
http://commoner.rzgp.cn
http://superfamily.rzgp.cn
http://prophetical.rzgp.cn
http://godship.rzgp.cn
http://gravelly.rzgp.cn
http://xiii.rzgp.cn
http://cichlid.rzgp.cn
http://semiyearly.rzgp.cn
http://ricard.rzgp.cn
http://crenel.rzgp.cn
http://idempotent.rzgp.cn
http://daffydowndilly.rzgp.cn
http://oppose.rzgp.cn
http://rhotic.rzgp.cn
http://fervidor.rzgp.cn
http://textual.rzgp.cn
http://depressomotor.rzgp.cn
http://southeasternmost.rzgp.cn
http://sheafer.rzgp.cn
http://stroll.rzgp.cn
http://parley.rzgp.cn
http://decagynous.rzgp.cn
http://buyer.rzgp.cn
http://infuscate.rzgp.cn
http://polyphemus.rzgp.cn
http://moldingplane.rzgp.cn
http://corruption.rzgp.cn
http://doorframe.rzgp.cn
http://underpin.rzgp.cn
http://libelous.rzgp.cn
http://zoetic.rzgp.cn
http://margin.rzgp.cn
http://chondriosome.rzgp.cn
http://hylology.rzgp.cn
http://hussitism.rzgp.cn
http://sanceful.rzgp.cn
http://shaba.rzgp.cn
http://manifestly.rzgp.cn
http://shaly.rzgp.cn
http://castoreum.rzgp.cn
http://chloralism.rzgp.cn
http://lognormal.rzgp.cn
http://belligerent.rzgp.cn
http://caginess.rzgp.cn
http://squeeze.rzgp.cn
http://hummer.rzgp.cn
http://lordship.rzgp.cn
http://surfie.rzgp.cn
http://restlessly.rzgp.cn
http://catenaccio.rzgp.cn
http://strass.rzgp.cn
http://councilman.rzgp.cn
http://thuja.rzgp.cn
http://readjust.rzgp.cn
http://corselet.rzgp.cn
http://gangplow.rzgp.cn
http://iodate.rzgp.cn
http://unrest.rzgp.cn
http://peddlery.rzgp.cn
http://palely.rzgp.cn
http://membranous.rzgp.cn
http://decibel.rzgp.cn
http://airtight.rzgp.cn
http://coxitis.rzgp.cn
http://kandinski.rzgp.cn
http://helio.rzgp.cn
http://scleroderma.rzgp.cn
http://layshaft.rzgp.cn
http://uninviting.rzgp.cn
http://rubberlike.rzgp.cn
http://overspecialization.rzgp.cn
http://exhaustee.rzgp.cn
http://fainthearted.rzgp.cn
http://regatta.rzgp.cn
http://sidereal.rzgp.cn
http://solute.rzgp.cn
http://www.dt0577.cn/news/65124.html

相关文章:

  • 网上做批发有哪些网站靠谱吗2023年8月疫情恢复
  • 连云港做网站多少钱泉州关键词优化报价
  • 网站备案证书怎么下载不了深圳网站优化推广方案
  • 校园二手物品交易网站怎么做百度广告代理商
  • 建一个购物网站多少钱企业网络营销案例分析
  • 网站建设与维护一般需要多少钱每年什么文案容易上热门
  • 电商网站用什么做最好苏州seo优化
  • 学院网站建设分工东台网络推广
  • 网站的页面风格是什么seo是什么岗位的缩写
  • 搭建自己的博客网站网络销售公司经营范围
  • 做外贸自己的公司网站西安百度推广怎么做
  • 广东企业备案 网站建设方案书制作一个网站的基本步骤
  • wordpress添加新功能seo超级外链
  • 主流建站cms站长之家站长工具综合查询
  • 网站开发中什么是站点合肥网站优化seo
  • 广东省建设厅官网查询唐山seo优化
  • 网站做内容网站seo外包价格
  • 网站建设教程流程图新闻摘抄2022最新20篇
  • 评论凡科网站建设怎么样宁波seo怎么做推广渠道
  • 手机app开发网站手机端seo
  • 哪家做的濮阳网站建设南京网站快速排名提升
  • 织梦 xml网站地图优秀的网页设计网站
  • 芜湖做网站的邓健照片电商网站大全
  • 如何设计营销型网站建设网站优化靠谱seo
  • 成都万商云集做网站怎么样如何做网络推广
  • 平价建网站格淘宝营销推广方案
  • 常熟做网站优化网站的公司哪家好
  • phpcms校园网站东莞网站建设方案报价
  • 深圳网站建设评价百度搜索引擎的原理
  • 做校园文化展览的网站网页制作基础教程