hasjob
hasjob copied to clipboard
Cache session active_at in Redis for periodic job processor
This branch introduces two new patterns that need some discussion and consensus on:
- Models that store frequently changing data (like
active_at
timestamps) in Redis, for periodic job processors to flush to database. Should we override the column property to transparently write to Redis instead of custom code each time? Should the flush to db have a standardised name like sayflush_from_redis
? - Models that use UUID keys and must expect queries with either UUID or string parameters. Where exactly is type safety enforced?