Files
OpenFlare/internal/model
ryan 9fa38dcfdc feat(push): implement Redis caching for push events and custom channels
- Implement cached queries in GetActivePushEventByKey and GetActivePushChannelByName.
- Set TTL for cached items to 24 hours via activePushEventCacheTTL and activePushChannelCacheTTL constants.
- Implement GORM hooks (AfterSave and AfterDelete) on PushEvent and PushChannel to auto-evict Redis caches, guaranteeing cache consistency.
- Evict Redis caches manually inside API handlers for Create/Update/Delete/Toggle event/channel endpoints.
- Update events.go to query models through the new caching methods.
2026-06-16 10:19:06 +08:00
..
2026-06-11 09:27:15 +08:00
2026-06-10 13:50:58 +08:00
2026-06-11 09:27:15 +08:00
2026-06-11 16:56:53 +08:00
2026-06-11 09:27:15 +08:00
2026-06-15 16:39:55 +08:00