M2 · DataProtection su DB, cache in memoria e Redis (client RESP) #20

Closed
opened 2026-11-10 22:24:59 +01:00 by Alby96 · 0 comments
Owner

M2 — Sistema e sicurezza · Specifica: docs/SPEC.md §1.6, §2 (Cache), §9

Passi

  • DataProtectionDbXmlRepository su sys_data_protection_keys
  • ICacheProvider (Get/Set con TTL, Remove, RemoveByPrefix, GetOrCreate, PublishInvalidation), chiavi kh:{azienda}:{area}:{key}
  • MemoryCacheProvider
  • RedisCacheProvider con RespClient, RespReader, RespWriter (RESP2 su TcpClient/SslStream, rediss://), RedisConnectionPool, RedisSubscriber per pub/sub
  • Se Redis cade: ritorno alla memoria, segnalazione nel log e in Stato sistema

Criteri di accettazione

  • Test RESP su vettori noti; integrazione con KHAEMHAT_TEST_REDIS; comportamento funzionale identico con e senza Redis

Valgono sempre CLAUDE.md (emendamenti E1–E6), i vincoli di SPEC §1, le regole di codice di §19 e la Definition of Done di §20: stessa unità di lavoro per codice, test, wiki, docs/*.md e CHANGELOG.md.

**M2 — Sistema e sicurezza** · Specifica: `docs/SPEC.md` §1.6, §2 (Cache), §9 ### Passi - [ ] `DataProtectionDbXmlRepository` su `sys_data_protection_keys` - [ ] `ICacheProvider` (`Get/Set` con TTL, `Remove`, `RemoveByPrefix`, `GetOrCreate`, `PublishInvalidation`), chiavi `kh:{azienda}:{area}:{key}` - [ ] `MemoryCacheProvider` - [ ] `RedisCacheProvider` con `RespClient`, `RespReader`, `RespWriter` (RESP2 su `TcpClient`/`SslStream`, `rediss://`), `RedisConnectionPool`, `RedisSubscriber` per pub/sub - [ ] Se Redis cade: ritorno alla memoria, segnalazione nel log e in *Stato sistema* ### Criteri di accettazione - Test RESP su vettori noti; integrazione con `KHAEMHAT_TEST_REDIS`; comportamento funzionale identico con e senza Redis --- Valgono sempre `CLAUDE.md` (emendamenti E1–E6), i vincoli di SPEC §1, le regole di codice di §19 e la Definition of Done di §20: stessa unità di lavoro per codice, test, wiki, `docs/*.md` e `CHANGELOG.md`.
Alby96 added this to the M2 — Sistema e sicurezza · v0.2.0 milestone 2026-11-10 22:24:59 +01:00
Alby96 added the Area/FondamentaKind/Feature
Priority
High
Modulo/CORE
labels 2026-11-10 22:24:59 +01:00
Alby96 added this to the Khaemhat 1.0 — Sviluppo project 2026-11-10 22:25:05 +01:00
Alby96 moved this to Da fare in Khaemhat 1.0 — Sviluppo on 2026-11-11 13:21:43 +01:00
Alby96 moved this to Fatto in Khaemhat 1.0 — Sviluppo on 2026-11-11 15:59:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: BalboSoft/Khaemhat#20