# Class CacheKeyClassifier

Namespace
  adas_core.Domain.Utils

Assembly
  adas-core.Domain.dll

Clasificador de claves basado en prefijos. Permite al CacheDispatcher seleccionar el backend adecuado (Redis, InMemory, None).

    public static class CacheKeyClassifier

Inheritance
  object
  CacheKeyClassifier

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Methods

### Classify(string)

Classifies a cache key into the corresponding entity type by inspecting its prefix. Recognized prefixes include `patients:`, `displays:`/`configDisplays:`, `pumpObs:`, `appointments:`, `groupedObs:`, and `configObservations:` (case-insensitive). If no known prefix matches, the method returns Unknown.

    public static CacheEnum.EntityType Classify(string key)

#### Parameters

`key` string

  The cache key to classify.

#### Returns

CacheEnum.EntityType

  The CacheEnum.EntityType that matches the key's prefix, or Unknown when no prefix is recognized.