shz.redis.item.StringIntegerRedisCacheItem Maven / Gradle / Ivy
package shz.redis.item;
import shz.core.NullHelp;
import shz.core.NumberHelp;
import shz.core.ToList;
import shz.redis.RedisCacheItem;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.function.Function;
import java.util.function.Supplier;
public interface StringIntegerRedisCacheItem extends RedisCacheItem {
@Override
default Operator setKey(Object... keys) {
return new Operator(this, name(), keys);
}
class Operator extends RedisCacheItem.Operator {
protected Operator(StringIntegerRedisCacheItem cacheItem, String name, Object... keys) {
super(cacheItem, name, keys);
}
public final Integer get() {
return NumberHelp.getInteger(cacheItem.getCache().get(key));
}
@SafeVarargs
public final List get(Collection collection, Function super E, ?>... keyGetters) {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy