public boolean setExpire(long seconds) {
		if(seconds <= 0)return true;
		try {
			if(!isBinary)return getJedisCommands(groupName).expire(key, (int)seconds) == 1;
			if(isCluster(groupName)){
				return getBinaryJedisClusterCommands(groupName).expire(keyBytes, (int)seconds) == 1;
			}
			return getBinaryJedisCommands(groupName).expire(keyBytes, (int)seconds) == 1;
		} finally {
			getJedisProvider(groupName).release();
		}

	}
public boolean setExpire ( long seconds ) { if ( seconds <= 0 ) return true ; try { if ( ! isBinary ) return getJedisCommands ( groupName ) . expire ( key , ( int ) seconds ) == 1 ; if ( isCluster ( groupName ) ) { return getBinaryJedisClusterCommands ( groupName ) . expire ( keyBytes , ( int ) seconds ) == 1 ; } return getBinaryJedisCommands ( groupName ) . expire ( keyBytes , ( int ) seconds ) == 1 ; } finally { getJedisProvider ( groupName ) . release ( ) ; } }
为给定 key 设置生存时间，当 key 过期时(生存时间为 0 )，它会被自动删除。

@param keyBytes
@param seconds
超时时间，单位：秒
@return true：超时设置成功

false：key不存在或超时未设置成功