Skip to content

Switch Redis to use Sets instead of Lists#236

Open
neufena wants to merge 1 commit into
php-cache:masterfrom
kaboodle-solutions:redis_use_sets
Open

Switch Redis to use Sets instead of Lists#236
neufena wants to merge 1 commit into
php-cache:masterfrom
kaboodle-solutions:redis_use_sets

Conversation

@neufena
Copy link
Copy Markdown

@neufena neufena commented Jun 19, 2020

The current Redis cache implementation uses lists for the tags. However as lists allow duplicates this results in duplicate records when an expired key is re added with the same tag. Sets work the same as lists except the enforce uniqueness of values and are not sorted.

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.

1 participant