File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ public struct Entry<T> {
66 public let object : T
77 /// Expiry date
88 public let expiry : Expiry
9- /// Associated meta data, if any
10- public let meta : [ String : Any ]
9+ /// File path to the cached object
10+ public let filePath : String ?
1111
12- init ( object: T , expiry: Expiry , meta : [ String : Any ] = [ : ] ) {
12+ init ( object: T , expiry: Expiry , filePath : String ? = nil ) {
1313 self . object = object
1414 self . expiry = expiry
15- self . meta = meta
15+ self . filePath = filePath
1616 }
1717}
Original file line number Diff line number Diff line change @@ -68,14 +68,10 @@ extension DiskStorage: StorageAware {
6868 throw StorageError . malformedFileAttributes
6969 }
7070
71- let meta : [ String : Any ] = [
72- " filePath " : filePath
73- ]
74-
7571 return Entry (
7672 object: object,
7773 expiry: Expiry . date ( date) ,
78- meta : meta
74+ filePath : filePath
7975 )
8076 }
8177
You can’t perform that action at this time.
0 commit comments