Cache entries' cover_url

This commit is contained in:
Leeingnyo
2021-08-30 08:13:50 +09:00
parent 8d84a3c502
commit 244f97a68e
2 changed files with 14 additions and 3 deletions
+4 -1
View File
@@ -3,9 +3,12 @@ require "../archive"
class Title
getter dir : String, parent_id : String, title_ids : Array(String),
entries : Array(Entry), title : String, id : String,
encoded_title : String, mtime : Time, signature : UInt64
encoded_title : String, mtime : Time, signature : UInt64,
entry_cover_url_cache : Hash(String, String)?
setter entry_cover_url_cache : Hash(String, String)?
@entry_display_name_cache : Hash(String, String)?
@entry_cover_url_cache : Hash(String, String)?
def initialize(@dir : String, @parent_id)
storage = Storage.default