mirror of
https://github.com/hyperoslo/Cache.git
synced 2026-04-07 19:17:36 +00:00
Passing the meta to Entry
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user