]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/redis.ts
Remove resumable cache after upload success
[github/Chocobozzz/PeerTube.git] / server / lib / redis.ts
index 76b7868e850352b7647c6d0c91c4ac5a1c9c9b73..8aec4b7937baed041d67da68d14b05a84b7284a5 100644 (file)
@@ -271,6 +271,10 @@ class Redis {
       : ''
   }
 
+  deleteUploadSession (uploadId: string) {
+    return this.deleteKey('resumable-upload-' + uploadId)
+  }
+
   /* ************ Keys generation ************ */
 
   generateCachedRouteKey (req: express.Request) {