org.zodiac.cache.reactive.config.RedisCacheInfo Maven / Gradle / Ivy
The newest version!
package org.zodiac.cache.reactive.config;
import java.util.Objects;
import org.zodiac.cache.reactive.config.ReactiveCacheInfo.Type;
public class RedisCacheInfo {
private String beanName;
private Type localCacheType = Type.caffeine;
public RedisCacheInfo() {
}
public String getBeanName() {
return beanName;
}
public void setBeanName(String beanName) {
this.beanName = beanName;
}
public Type getLocalCacheType() {
return localCacheType;
}
public void setLocalCacheType(Type localCacheType) {
this.localCacheType = localCacheType;
}
@Override
public int hashCode() {
return Objects.hash(beanName, localCacheType);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
RedisCacheInfo other = (RedisCacheInfo)obj;
return Objects.equals(beanName, other.beanName) && localCacheType == other.localCacheType;
}
@Override
public String toString() {
return "[beanName=" + beanName + ", localCacheType=" + localCacheType + "]";
}
}