Passing the meta to Entry

This commit is contained in:
Michele Gruppioni
2018-06-07 09:44:39 +02:00
committed by GitHub
parent cc82d707ad
commit b2bec8b198
@@ -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 {