Erase Expired AudioFeaturesCache #17
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
scope:backend
Back-end issue
Current Behavior
AudioFeaturesCache
model hasexpiresAt
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.The text was updated successfully, but these errors were encountered: