protected override AndBuilder <CacheImplementationBuilder> Configure(CachingKeyBuilder <User> builder) => builder.UseAsKey("user") .CombinedWith(_ => _.Id) .CombinedWith(_ => _.FirstName) .CombinedWith(_ => _.LastName) .And().WithTtlOf(5).Seconds .And().SlidingExpiration();
public CachingKeyBuilderTests() { _propertyTrackerMock = new Mock <IPropertyTracker <User> >(); _sut = new CachingKeyBuilder <User>(_propertyTrackerMock.Object); }
protected abstract AndBuilder <CacheImplementationBuilder> Configure(CachingKeyBuilder <User> builder);