com.yuweix.kuafu.data.elect.Redis Maven / Gradle / Ivy
The newest version!
package com.yuweix.kuafu.data.elect;
/**
* @author yuwei
*/
public interface Redis {
/**
* @param timeout 单位:秒。
* 返回锁的持有者。
*/
String lock(String key, String owner, long timeout);
boolean unlock(String key, String owner);
}