how to custom the cacheEntry expiration ?

Sep 23, 2014 at 1:01 PM
in CachingPolicy.cs
/// <summary>
        /// Gets the expiration timeout for a given command definition.
        /// </summary>
        /// <param name="affectedEntitySets">Entity sets affected by the command.</param>
        /// <param name="slidingExpiration">The sliding expiration time.</param>
        /// <param name="absoluteExpiration">The absolute expiration time.</param>
        protected internal virtual void GetExpirationTimeout(ReadOnlyCollection<EntitySetBase> affectedEntitySets, 
            out TimeSpan slidingExpiration, out DateTimeOffset absoluteExpiration)
            slidingExpiration = TimeSpan.MaxValue;
            absoluteExpiration = DateTimeOffset.MaxValue;
Can I custom them in DbConfigration ?
Sep 24, 2014 at 5:21 AM
Create your own custom caching policy by deriving from this one and pass it when registering CachingProviderServices.