GenericTtlStrategy<TResult>
Represents a strongly-typed  ITtlStrategy wrapper of a non-generic strategy.
            
                using System;
using System.Runtime.CompilerServices;
namespace Polly.Caching
{
    [System.Runtime.CompilerServices.NullableContext(1)]
    [System.Runtime.CompilerServices.Nullable(0)]
    internal sealed class GenericTtlStrategy<[System.Runtime.CompilerServices.Nullable(2)] TResult> : ITtlStrategy<TResult>
    {
        private readonly ITtlStrategy _wrappedTtlStrategy;
        internal GenericTtlStrategy(ITtlStrategy ttlStrategy)
        {
            if (ttlStrategy == null)
                throw new ArgumentNullException("ttlStrategy");
            _wrappedTtlStrategy = ttlStrategy;
        }
        public Ttl GetTtl(Context context, [System.Runtime.CompilerServices.Nullable(2)] TResult result)
        {
            return _wrappedTtlStrategy.GetTtl(context, result);
        }
    }
}