### YamlMime:ManagedReference
items:
- uid: adas_core.Domain.Utils.CacheKeyTtl
  commentId: T:adas_core.Domain.Utils.CacheKeyTtl
  id: CacheKeyTtl
  parent: adas_core.Domain.Utils
  children:
  - adas_core.Domain.Utils.CacheKeyTtl.ResolveForEntity(adas_core.Domain.Models.AppSettings.CacheSettings,adas_core.Domain.Enums.CacheEnum.EntityType)
  - adas_core.Domain.Utils.CacheKeyTtl.ResolveForKey(adas_core.Domain.Models.AppSettings.CacheSettings,System.String)
  langs:
  - csharp
  - vb
  name: CacheKeyTtl
  nameWithType: CacheKeyTtl
  fullName: adas_core.Domain.Utils.CacheKeyTtl
  type: Class
  source:
    remote:
      path: adas-core.Domain/Utils/CacheUtils.cs
      branch: document/release/1.0.1
      repo: https://git.teralevel.io/adas/adas-core.git
    id: CacheKeyTtl
    path: ../../adas-core.Domain/Utils/CacheUtils.cs
    startLine: 16
  assemblies:
  - adas-core.Domain
  namespace: adas_core.Domain.Utils
  summary: >-
    Resuelve TTLs a partir de CacheSettings teniendo en cuenta:
     - El backend seleccionado por entidad (None | Cache | Redis)
     - El TTL de la entidad para ese backend
     - Caída a GlobalSeconds del backend si no hay TTL específico
     - Si el TTL resultante es null o menor o igual a 0 sin expiración
  example: []
  syntax:
    content: public static class CacheKeyTtl
    content.vb: Public Module CacheKeyTtl
  inheritance:
  - System.Object
  inheritedMembers:
  - System.Object.Equals(System.Object)
  - System.Object.Equals(System.Object,System.Object)
  - System.Object.GetHashCode
  - System.Object.GetType
  - System.Object.MemberwiseClone
  - System.Object.ReferenceEquals(System.Object,System.Object)
  - System.Object.ToString
- uid: adas_core.Domain.Utils.CacheKeyTtl.ResolveForEntity(adas_core.Domain.Models.AppSettings.CacheSettings,adas_core.Domain.Enums.CacheEnum.EntityType)
  commentId: M:adas_core.Domain.Utils.CacheKeyTtl.ResolveForEntity(adas_core.Domain.Models.AppSettings.CacheSettings,adas_core.Domain.Enums.CacheEnum.EntityType)
  id: ResolveForEntity(adas_core.Domain.Models.AppSettings.CacheSettings,adas_core.Domain.Enums.CacheEnum.EntityType)
  parent: adas_core.Domain.Utils.CacheKeyTtl
  langs:
  - csharp
  - vb
  name: ResolveForEntity(CacheSettings?, EntityType)
  nameWithType: CacheKeyTtl.ResolveForEntity(CacheSettings?, CacheEnum.EntityType)
  fullName: adas_core.Domain.Utils.CacheKeyTtl.ResolveForEntity(adas_core.Domain.Models.AppSettings.CacheSettings?, adas_core.Domain.Enums.CacheEnum.EntityType)
  type: Method
  source:
    remote:
      path: adas-core.Domain/Utils/CacheUtils.cs
      branch: document/release/1.0.1
      repo: https://git.teralevel.io/adas/adas-core.git
    id: ResolveForEntity
    path: ../../adas-core.Domain/Utils/CacheUtils.cs
    startLine: 66
  assemblies:
  - adas-core.Domain
  namespace: adas_core.Domain.Utils
  summary: Resuelve TTL para una entidad concreta, respetando el backend configurado para dicha entidad.
  example: []
  syntax:
    content: public static TimeSpan? ResolveForEntity(CacheSettings? settings, CacheEnum.EntityType entity)
    parameters:
    - id: settings
      type: adas_core.Domain.Models.AppSettings.CacheSettings
    - id: entity
      type: adas_core.Domain.Enums.CacheEnum.EntityType
    return:
      type: System.Nullable{System.TimeSpan}
    content.vb: Public Shared Function ResolveForEntity(settings As CacheSettings, entity As CacheEnum.EntityType) As TimeSpan?
  overload: adas_core.Domain.Utils.CacheKeyTtl.ResolveForEntity*
  nameWithType.vb: CacheKeyTtl.ResolveForEntity(CacheSettings, CacheEnum.EntityType)
  fullName.vb: adas_core.Domain.Utils.CacheKeyTtl.ResolveForEntity(adas_core.Domain.Models.AppSettings.CacheSettings, adas_core.Domain.Enums.CacheEnum.EntityType)
  name.vb: ResolveForEntity(CacheSettings, EntityType)
- uid: adas_core.Domain.Utils.CacheKeyTtl.ResolveForKey(adas_core.Domain.Models.AppSettings.CacheSettings,System.String)
  commentId: M:adas_core.Domain.Utils.CacheKeyTtl.ResolveForKey(adas_core.Domain.Models.AppSettings.CacheSettings,System.String)
  id: ResolveForKey(adas_core.Domain.Models.AppSettings.CacheSettings,System.String)
  parent: adas_core.Domain.Utils.CacheKeyTtl
  langs:
  - csharp
  - vb
  name: ResolveForKey(CacheSettings, string)
  nameWithType: CacheKeyTtl.ResolveForKey(CacheSettings, string)
  fullName: adas_core.Domain.Utils.CacheKeyTtl.ResolveForKey(adas_core.Domain.Models.AppSettings.CacheSettings, string)
  type: Method
  source:
    remote:
      path: adas-core.Domain/Utils/CacheUtils.cs
      branch: document/release/1.0.1
      repo: https://git.teralevel.io/adas/adas-core.git
    id: ResolveForKey
    path: ../../adas-core.Domain/Utils/CacheUtils.cs
    startLine: 117
  assemblies:
  - adas-core.Domain
  namespace: adas_core.Domain.Utils
  summary: Dada una clave, clasifica la entidad y resuelve el TTL para esa clave.
  example: []
  syntax:
    content: public static TimeSpan? ResolveForKey(CacheSettings settings, string key)
    parameters:
    - id: settings
      type: adas_core.Domain.Models.AppSettings.CacheSettings
    - id: key
      type: System.String
    return:
      type: System.Nullable{System.TimeSpan}
    content.vb: Public Shared Function ResolveForKey(settings As CacheSettings, key As String) As TimeSpan?
  overload: adas_core.Domain.Utils.CacheKeyTtl.ResolveForKey*
  nameWithType.vb: CacheKeyTtl.ResolveForKey(CacheSettings, String)
  fullName.vb: adas_core.Domain.Utils.CacheKeyTtl.ResolveForKey(adas_core.Domain.Models.AppSettings.CacheSettings, String)
  name.vb: ResolveForKey(CacheSettings, String)
references:
- uid: adas_core.Domain.Utils
  commentId: N:adas_core.Domain.Utils
  href: adas_core.html
  name: adas_core.Domain.Utils
  nameWithType: adas_core.Domain.Utils
  fullName: adas_core.Domain.Utils
  spec.csharp:
  - uid: adas_core
    name: adas_core
    href: adas_core.html
  - name: .
  - uid: adas_core.Domain
    name: Domain
    href: adas_core.Domain.html
  - name: .
  - uid: adas_core.Domain.Utils
    name: Utils
    href: adas_core.Domain.Utils.html
  spec.vb:
  - uid: adas_core
    name: adas_core
    href: adas_core.html
  - name: .
  - uid: adas_core.Domain
    name: Domain
    href: adas_core.Domain.html
  - name: .
  - uid: adas_core.Domain.Utils
    name: Utils
    href: adas_core.Domain.Utils.html
- uid: System.Object
  commentId: T:System.Object
  parent: System
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object
  name: object
  nameWithType: object
  fullName: object
  nameWithType.vb: Object
  fullName.vb: Object
  name.vb: Object
- uid: System.Object.Equals(System.Object)
  commentId: M:System.Object.Equals(System.Object)
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
  name: Equals(object)
  nameWithType: object.Equals(object)
  fullName: object.Equals(object)
  nameWithType.vb: Object.Equals(Object)
  fullName.vb: Object.Equals(Object)
  name.vb: Equals(Object)
  spec.csharp:
  - uid: System.Object.Equals(System.Object)
    name: Equals
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
  - name: (
  - uid: System.Object
    name: object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: )
  spec.vb:
  - uid: System.Object.Equals(System.Object)
    name: Equals
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
  - name: (
  - uid: System.Object
    name: Object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: )
- uid: System.Object.Equals(System.Object,System.Object)
  commentId: M:System.Object.Equals(System.Object,System.Object)
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
  name: Equals(object, object)
  nameWithType: object.Equals(object, object)
  fullName: object.Equals(object, object)
  nameWithType.vb: Object.Equals(Object, Object)
  fullName.vb: Object.Equals(Object, Object)
  name.vb: Equals(Object, Object)
  spec.csharp:
  - uid: System.Object.Equals(System.Object,System.Object)
    name: Equals
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
  - name: (
  - uid: System.Object
    name: object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: ','
  - name: " "
  - uid: System.Object
    name: object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: )
  spec.vb:
  - uid: System.Object.Equals(System.Object,System.Object)
    name: Equals
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
  - name: (
  - uid: System.Object
    name: Object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: ','
  - name: " "
  - uid: System.Object
    name: Object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: )
- uid: System.Object.GetHashCode
  commentId: M:System.Object.GetHashCode
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
  name: GetHashCode()
  nameWithType: object.GetHashCode()
  fullName: object.GetHashCode()
  nameWithType.vb: Object.GetHashCode()
  fullName.vb: Object.GetHashCode()
  spec.csharp:
  - uid: System.Object.GetHashCode
    name: GetHashCode
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
  - name: (
  - name: )
  spec.vb:
  - uid: System.Object.GetHashCode
    name: GetHashCode
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
  - name: (
  - name: )
- uid: System.Object.GetType
  commentId: M:System.Object.GetType
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.gettype
  name: GetType()
  nameWithType: object.GetType()
  fullName: object.GetType()
  nameWithType.vb: Object.GetType()
  fullName.vb: Object.GetType()
  spec.csharp:
  - uid: System.Object.GetType
    name: GetType
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.gettype
  - name: (
  - name: )
  spec.vb:
  - uid: System.Object.GetType
    name: GetType
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.gettype
  - name: (
  - name: )
- uid: System.Object.MemberwiseClone
  commentId: M:System.Object.MemberwiseClone
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
  name: MemberwiseClone()
  nameWithType: object.MemberwiseClone()
  fullName: object.MemberwiseClone()
  nameWithType.vb: Object.MemberwiseClone()
  fullName.vb: Object.MemberwiseClone()
  spec.csharp:
  - uid: System.Object.MemberwiseClone
    name: MemberwiseClone
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
  - name: (
  - name: )
  spec.vb:
  - uid: System.Object.MemberwiseClone
    name: MemberwiseClone
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
  - name: (
  - name: )
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
  commentId: M:System.Object.ReferenceEquals(System.Object,System.Object)
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
  name: ReferenceEquals(object, object)
  nameWithType: object.ReferenceEquals(object, object)
  fullName: object.ReferenceEquals(object, object)
  nameWithType.vb: Object.ReferenceEquals(Object, Object)
  fullName.vb: Object.ReferenceEquals(Object, Object)
  name.vb: ReferenceEquals(Object, Object)
  spec.csharp:
  - uid: System.Object.ReferenceEquals(System.Object,System.Object)
    name: ReferenceEquals
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
  - name: (
  - uid: System.Object
    name: object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: ','
  - name: " "
  - uid: System.Object
    name: object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: )
  spec.vb:
  - uid: System.Object.ReferenceEquals(System.Object,System.Object)
    name: ReferenceEquals
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
  - name: (
  - uid: System.Object
    name: Object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: ','
  - name: " "
  - uid: System.Object
    name: Object
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object
  - name: )
- uid: System.Object.ToString
  commentId: M:System.Object.ToString
  parent: System.Object
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.object.tostring
  name: ToString()
  nameWithType: object.ToString()
  fullName: object.ToString()
  nameWithType.vb: Object.ToString()
  fullName.vb: Object.ToString()
  spec.csharp:
  - uid: System.Object.ToString
    name: ToString
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.tostring
  - name: (
  - name: )
  spec.vb:
  - uid: System.Object.ToString
    name: ToString
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.object.tostring
  - name: (
  - name: )
- uid: System
  commentId: N:System
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system
  name: System
  nameWithType: System
  fullName: System
- uid: adas_core.Domain.Utils.CacheKeyTtl.ResolveForEntity*
  commentId: Overload:adas_core.Domain.Utils.CacheKeyTtl.ResolveForEntity
  href: adas_core.Domain.Utils.CacheKeyTtl.html#adas_core_Domain_Utils_CacheKeyTtl_ResolveForEntity_adas_core_Domain_Models_AppSettings_CacheSettings_adas_core_Domain_Enums_CacheEnum_EntityType_
  name: ResolveForEntity
  nameWithType: CacheKeyTtl.ResolveForEntity
  fullName: adas_core.Domain.Utils.CacheKeyTtl.ResolveForEntity
- uid: adas_core.Domain.Models.AppSettings.CacheSettings
  commentId: T:adas_core.Domain.Models.AppSettings.CacheSettings
  parent: adas_core.Domain.Models.AppSettings
  href: adas_core.Domain.Models.AppSettings.CacheSettings.html
  name: CacheSettings
  nameWithType: CacheSettings
  fullName: adas_core.Domain.Models.AppSettings.CacheSettings
- uid: adas_core.Domain.Enums.CacheEnum.EntityType
  commentId: T:adas_core.Domain.Enums.CacheEnum.EntityType
  parent: adas_core.Domain.Enums
  href: adas_core.Domain.Enums.CacheEnum.html
  name: CacheEnum.EntityType
  nameWithType: CacheEnum.EntityType
  fullName: adas_core.Domain.Enums.CacheEnum.EntityType
  spec.csharp:
  - uid: adas_core.Domain.Enums.CacheEnum
    name: CacheEnum
    href: adas_core.Domain.Enums.CacheEnum.html
  - name: .
  - uid: adas_core.Domain.Enums.CacheEnum.EntityType
    name: EntityType
    href: adas_core.Domain.Enums.CacheEnum.EntityType.html
  spec.vb:
  - uid: adas_core.Domain.Enums.CacheEnum
    name: CacheEnum
    href: adas_core.Domain.Enums.CacheEnum.html
  - name: .
  - uid: adas_core.Domain.Enums.CacheEnum.EntityType
    name: EntityType
    href: adas_core.Domain.Enums.CacheEnum.EntityType.html
- uid: System.Nullable{System.TimeSpan}
  commentId: T:System.Nullable{System.TimeSpan}
  parent: System
  definition: System.Nullable`1
  href: https://learn.microsoft.com/dotnet/api/system.timespan
  name: TimeSpan?
  nameWithType: TimeSpan?
  fullName: System.TimeSpan?
  spec.csharp:
  - uid: System.TimeSpan
    name: TimeSpan
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.timespan
  - name: '?'
  spec.vb:
  - uid: System.TimeSpan
    name: TimeSpan
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.timespan
  - name: '?'
- uid: adas_core.Domain.Models.AppSettings
  commentId: N:adas_core.Domain.Models.AppSettings
  href: adas_core.html
  name: adas_core.Domain.Models.AppSettings
  nameWithType: adas_core.Domain.Models.AppSettings
  fullName: adas_core.Domain.Models.AppSettings
  spec.csharp:
  - uid: adas_core
    name: adas_core
    href: adas_core.html
  - name: .
  - uid: adas_core.Domain
    name: Domain
    href: adas_core.Domain.html
  - name: .
  - uid: adas_core.Domain.Models
    name: Models
    href: adas_core.Domain.Models.html
  - name: .
  - uid: adas_core.Domain.Models.AppSettings
    name: AppSettings
    href: adas_core.Domain.Models.AppSettings.html
  spec.vb:
  - uid: adas_core
    name: adas_core
    href: adas_core.html
  - name: .
  - uid: adas_core.Domain
    name: Domain
    href: adas_core.Domain.html
  - name: .
  - uid: adas_core.Domain.Models
    name: Models
    href: adas_core.Domain.Models.html
  - name: .
  - uid: adas_core.Domain.Models.AppSettings
    name: AppSettings
    href: adas_core.Domain.Models.AppSettings.html
- uid: adas_core.Domain.Enums
  commentId: N:adas_core.Domain.Enums
  href: adas_core.html
  name: adas_core.Domain.Enums
  nameWithType: adas_core.Domain.Enums
  fullName: adas_core.Domain.Enums
  spec.csharp:
  - uid: adas_core
    name: adas_core
    href: adas_core.html
  - name: .
  - uid: adas_core.Domain
    name: Domain
    href: adas_core.Domain.html
  - name: .
  - uid: adas_core.Domain.Enums
    name: Enums
    href: adas_core.Domain.Enums.html
  spec.vb:
  - uid: adas_core
    name: adas_core
    href: adas_core.html
  - name: .
  - uid: adas_core.Domain
    name: Domain
    href: adas_core.Domain.html
  - name: .
  - uid: adas_core.Domain.Enums
    name: Enums
    href: adas_core.Domain.Enums.html
- uid: System.Nullable`1
  commentId: T:System.Nullable`1
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.nullable-1
  name: Nullable<T>
  nameWithType: Nullable<T>
  fullName: System.Nullable<T>
  nameWithType.vb: Nullable(Of T)
  fullName.vb: System.Nullable(Of T)
  name.vb: Nullable(Of T)
  spec.csharp:
  - uid: System.Nullable`1
    name: Nullable
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.nullable-1
  - name: <
  - name: T
  - name: '>'
  spec.vb:
  - uid: System.Nullable`1
    name: Nullable
    isExternal: true
    href: https://learn.microsoft.com/dotnet/api/system.nullable-1
  - name: (
  - name: Of
  - name: " "
  - name: T
  - name: )
- uid: adas_core.Domain.Utils.CacheKeyTtl.ResolveForKey*
  commentId: Overload:adas_core.Domain.Utils.CacheKeyTtl.ResolveForKey
  href: adas_core.Domain.Utils.CacheKeyTtl.html#adas_core_Domain_Utils_CacheKeyTtl_ResolveForKey_adas_core_Domain_Models_AppSettings_CacheSettings_System_String_
  name: ResolveForKey
  nameWithType: CacheKeyTtl.ResolveForKey
  fullName: adas_core.Domain.Utils.CacheKeyTtl.ResolveForKey
- uid: System.String
  commentId: T:System.String
  parent: System
  isExternal: true
  href: https://learn.microsoft.com/dotnet/api/system.string
  name: string
  nameWithType: string
  fullName: string
  nameWithType.vb: String
  fullName.vb: String
  name.vb: String
