umap/umap/sync
Yohan Boniface 476c160fd5 wip(sync): clean stale username from redis
We wanted to use the HEXPIRE command, but discovered that this command
is only available since the Redis 7.4 version (the latest), and this version
does not have an OSI compliant licence, so it is generally not installable
through common packages managers. The OSS fork is Valkey, but it still does
not have the HEXPIRE command.

So we decide to clean those keys manually, and in order no do this clean
task at each websocket connection, we only do it when we are the first user
to connect to a given map.

Co-authored-by: David Larlet <david@larlet.fr>
2025-01-23 17:20:21 +01:00
..
__init__.py wip(sync): use django-channels to serve websockets 2025-01-23 17:16:44 +01:00
app.py wip(sync): clean stale username from redis 2025-01-23 17:20:21 +01:00
payloads.py wip(sync): only return peers with an active connection 2025-01-23 17:20:21 +01:00