
com.intenthq.icicle.redis.Redis Maven / Gradle / Ivy
package com.intenthq.icicle.redis;
import com.google.common.base.Optional;
import java.util.List;
/**
* This interface defines operations that the ID generator needs in order to be able to work. The most common Redis
* library, Jedis, has an interface for it already in the icicle-jedis project, but you can use any library you want
* simply by implementing this interface around it and passing the instances to the IcicleIdGenerator via a
* RoundRobinRedisPool instance.
*/
public interface Redis {
String loadLuaScript(final String luaScript);
Optional evalLuaScript(final String luaScriptSha, final List arguments);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy