public static final int ALIVETIME = 600000; public static final String QUEUE = "hnyz_gs_queue"; @Beanpublic Queue cretaeQueue(){ // return new Queue(QUEUE,true); Map<String, Object> argMap = new HashMap<>(); // 设置消息存活时间 argMap.put(&q
Redis是NOSQL阵营中的一种数据库,主要用于存储缓存 五大数据类型:字符串(String).散列(hash).列表(list).集合(set).有序集合(SortedSett .zset) String: set key value 键值对存储值 get key 通过键获取值 keys * 查看所有键 incr key key的值加1,只能为数值 deci key key的值减1,只能为数值 del key 根据键删除键值对 Hash hse