Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Redis for ID caching #19

Merged
merged 9 commits into from
Feb 26, 2024
Merged

Switch to Redis for ID caching #19

merged 9 commits into from
Feb 26, 2024

Conversation

jemrobinson
Copy link
Member

Generate user and group IDs using the following algorithm:

  • Get all users and sort by creation date
  • Read ID from Redis cache
    • if user is not in cache then give this user the next available ID
  • Cache should be persisted beyond reboots of the system, using e.g. Docker volume mounts

Closes #12

@jemrobinson jemrobinson merged commit 5a19e78 into main Feb 26, 2024
3 checks passed
@jemrobinson jemrobinson deleted the 16-redis branch March 6, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generating UIDs
1 participant