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

com.intenthq.icicle.redis.Redis Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
package com.intenthq.icicle.redis;

import java.util.List;
import java.util.Optional;

/**
 * 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