package domain

import "time"

type IdentityCacheStatus struct {
	Status          string     `json:"status"`
	RedisReady      bool       `json:"redisReady"`
	ObservedCount   int64      `json:"observedCount"`
	KeyCount        int64      `json:"keyCount"`
	LastRefreshedAt *time.Time `json:"lastRefreshedAt,omitempty"`
	LastError       string     `json:"lastError,omitempty"`
	UpdatedAt       *time.Time `json:"updatedAt,omitempty"`
}

type IdentityCacheFlushResult struct {
	Status      string    `json:"status"`
	FlushedKeys int64     `json:"flushedKeys"`
	UpdatedAt   time.Time `json:"updatedAt"`
}
