ResultTtl<TResult>
Defines a ttl strategy which can calculate a duration to cache items dynamically based on the execution context and result of the execution.
            
                
Initializes a new instance of the  ResultTtl<T> class, with a func calculating  Ttl based on the TResult value to cache.
            
Initializes a new instance of the  ResultTtl<T> class, with a func calculating  Ttl based on the execution  Context and TResult value to cache.
            
Gets a TTL for the cacheable item.