public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (GetType() != obj.GetType()) { return(false); } RequestCacheKey other = (RequestCacheKey)obj; if (type != other.type) { return(false); } if (key == null) { if (other.key != null) { return(false); } } else if (!key.Equals(other.key)) { return(false); } return(true); }
private int GenerateHashCode() { unchecked { int hash = 17; if (RequestCacheKey != null) { hash = hash * 92821 + RequestCacheKey.GetHashCode( ); } if (EntityIdList != null) { hash = hash * 92821 + EntityIdList.GetHashCode( ); } if (Filter != null) { hash = hash * 92821 + Filter.GetHashCode( ); } return(hash); } }
private HystrixRequestCache(RequestCacheKey rcKey) { this.rcKey = rcKey; }
private static HystrixRequestCache GetInstance(RequestCacheKey rcKey) { return(Caches.GetOrAddEx(rcKey, (k) => new HystrixRequestCache(rcKey))); }
public ValueCacheKey(RequestCacheKey rvKey, string valueCacheKey) { this.rvKey = rvKey; this.valueCacheKey = valueCacheKey; }
public ValueCacheKey(RequestCacheKey rvKey, string valueCacheKey) { _rvKey = rvKey; _valueCacheKey = valueCacheKey; }