Y
Hacker News
new
|
ask
|
show
|
jobs
by
deepsun
25 days ago
And Redis has auto-delete rows (aka TTL). In Postgres you need a cron job to clear stale rows.
2 comments
samuelknight
24 days ago
You can create an index on an expires_at column and opportunistically DELETE on each write to the cache table.
link
pooloo
25 days ago
This is one way to handle the problem, but not the only...
link