And Redis has auto-delete rows (aka TTL). In Postgres you need a cron job to clear stale rows.
This is one way to handle the problem, but not the only...