This commit is contained in:
@@ -96,11 +96,13 @@ impl AppState {
|
||||
let filelist = get_s3_filelist(&self.storj_client, &self.storj_bucket).await;
|
||||
|
||||
for [filename, filepath] in filelist.clone() {
|
||||
if !filepath.starts_with("/development") {
|
||||
// Сохраняем список файлов в Redis, используя HSET для каждого файла
|
||||
let _: () = redis
|
||||
.hset(PATH_MAPPING_KEY, filename.clone(), filepath)
|
||||
.await
|
||||
.expect(&format!("Failed to cache file {} in Redis", filename));
|
||||
}
|
||||
}
|
||||
|
||||
info!("cached {} files", filelist.len());
|
||||
|
Reference in New Issue
Block a user