Comment on Do you need separate systems when you already have Postgres?parentComments−deepsun2moAnd Redis has auto-delete rows (aka TTL). In Postgres you need a cron job to clear stale rows.−samuelknight2moYou can create an index on an expires_at column and opportunistically DELETE on each write to the cache table.−pooloo2moThis is one way to handle the problem, but not the only...
Comments
And Redis has auto-delete rows (aka TTL). In Postgres you need a cron job to clear stale rows.
You can create an index on an expires_at column and opportunistically DELETE on each write to the cache table.
This is one way to handle the problem, but not the only...