All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jeesuite.cache.command.RedisBinaryCollection Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
/**
 * 
 */
package com.jeesuite.cache.command;

import java.util.ArrayList;
import java.util.List;

/**
 * 集合操作基类
 * @description 
* @author vakin * @date 2015年12月7日 */ public abstract class RedisBinaryCollection extends RedisBase { protected long expireTime;//过期时间(秒) public RedisBinaryCollection(String key) { this(key,RedisBase.getDefaultExpireSeconds()); } /** * 指定组名 * @param key * @param groupName */ public RedisBinaryCollection(String key,String groupName) { this(key,groupName,RedisBase.getDefaultExpireSeconds()); } public RedisBinaryCollection(String key,long expireTime) { super(key); this.expireTime = expireTime; } public RedisBinaryCollection(String key,String groupName,long expireTime) { super(key,groupName,true); this.expireTime = expireTime; } protected List toObjectList(List datas) { List result = new ArrayList<>(); if(datas == null)return result; for (byte[] data : datas) { result.add((T)valueDerialize(data)); } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy