Replace InfoCache to LRUCache

This commit is contained in:
Leeingnyo
2021-09-05 01:54:19 +09:00
parent 0fd7caef4b
commit de410f42b8
6 changed files with 61 additions and 190 deletions
-4
View File
@@ -106,8 +106,6 @@ class Library
storage = Storage.new auto_close: false
InfoCache.clear
(Dir.entries @dir)
.select { |fn| !fn.starts_with? "." }
.map { |fn| File.join @dir, fn }
@@ -121,8 +119,6 @@ class Library
@title_ids << title.id
end
InfoCache.clean
storage.bulk_insert_ids
storage.close