Skip to content

Commit

Permalink
Passing the meta to Entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Gruppio authored Jun 7, 2018
1 parent cc82d70 commit b2bec8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Shared/Storage/TypeWrapperStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class TypeWrapperStorage {
extension TypeWrapperStorage: StorageAware {
public func entry<T: Codable>(ofType type: T.Type, forKey key: String) throws -> Entry<T> {
let wrapperEntry = try internalStorage.entry(ofType: TypeWrapper<T>.self, forKey: key)
return Entry(object: wrapperEntry.object.object, expiry: wrapperEntry.expiry)
return Entry(object: wrapperEntry.object.object, expiry: wrapperEntry.expiry, meta: wrapperEntry.meta)
}

public func removeObject(forKey key: String) throws {
Expand Down

0 comments on commit b2bec8b

Please sign in to comment.