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

Erase Expired AudioFeaturesCache #17

Open
0916dhkim opened this issue Nov 14, 2022 · 0 comments
Open

Erase Expired AudioFeaturesCache #17

0916dhkim opened this issue Nov 14, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed scope:backend Back-end issue

Comments

@0916dhkim
Copy link
Owner

Current Behavior

AudioFeaturesCache model has expiresAt field, but it doesn't actually erase the document after expiration.
https://github.com/0916dhkim/spotify-filter/blob/d0661a8e79e3161f146ff6e4e5f3fb724b5381a6/server/src/services/database/AudioFeaturesCache.ts#L5

Desired Behavior

Use MongoDB's TTL index to automatically erase expired AudioFeaturesCache documents.

@0916dhkim 0916dhkim added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers scope:backend Back-end issue labels Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed scope:backend Back-end issue
Projects
None yet
Development

No branches or pull requests

1 participant