
redis.clients.jedis.csc.util.AllowAndDenyListWithStringKeys Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis Show documentation
Show all versions of jedis Show documentation
Jedis is a blazingly small and sane Redis java client.
package redis.clients.jedis.csc.util;
import java.util.List;
import java.util.Set;
import redis.clients.jedis.commands.ProtocolCommand;
import redis.clients.jedis.csc.DefaultCacheable;
import redis.clients.jedis.csc.Cacheable;
public class AllowAndDenyListWithStringKeys implements Cacheable {
private final Set allowCommands;
private final Set denyCommands;
private final Set allowKeys;
private final Set denyKeys;
public AllowAndDenyListWithStringKeys(Set allowCommands, Set denyCommands,
Set allowKeys, Set denyKeys) {
this.allowCommands = allowCommands;
this.denyCommands = denyCommands;
this.allowKeys = allowKeys;
this.denyKeys = denyKeys;
}
@Override
public boolean isCacheable(ProtocolCommand command, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy