4 ms·
And Redis has auto-delete rows (aka TTL). In Postgres you need a cron job to clear stale rows.
by deepsun 3mo ago
And Redis has auto-delete rows (aka TTL). In Postgres you need a cron job to clear stale rows.
- pooloo 3mo agoThis is one way to handle the problem, but not the only...
- samuelknight 3mo agoYou can create an index on an expires_at column and opportunistically DELETE on each write to the cache table.
- deepsun 3mo ago[dead]