Class CacheKeyClassifier
Clasificador de claves basado en prefijos. Permite al CacheDispatcher seleccionar el backend adecuado (Redis, InMemory, None).
public static class CacheKeyClassifier
- Inheritance
-
CacheKeyClassifier
- Inherited Members
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
keystringThe cache key to classify.
Returns
- CacheEnum.EntityType
The CacheEnum.EntityType that matches the key's prefix, or Unknown when no prefix is recognized.