diff --git a/Sources/DataLoader/DataLoader.swift b/Sources/DataLoader/DataLoader.swift index 20b8d73..f0d7e81 100644 --- a/Sources/DataLoader/DataLoader.swift +++ b/Sources/DataLoader/DataLoader.swift @@ -108,7 +108,7 @@ final public class DataLoader { /// Clears the value at `key` from the cache, if it exists. Returns itself for /// method chaining. @discardableResult - func clear(key: Key) -> DataLoader { + public func clear(key: Key) -> DataLoader { let cacheKey = options.cacheKeyFunction?(key) ?? key lock.withLockVoid { cache.removeValue(forKey: cacheKey) @@ -120,7 +120,7 @@ final public class DataLoader { /// invalidations across this particular `DataLoader`. Returns itself for /// method chaining. @discardableResult - func clearAll() -> DataLoader { + public func clearAll() -> DataLoader { lock.withLockVoid { cache.removeAll() } @@ -130,7 +130,7 @@ final public class DataLoader { /// Adds the provied key and value to the cache. If the key already exists, no /// change is made. Returns itself for method chaining. @discardableResult - func prime(key: Key, value: Value, on eventLoop: EventLoopGroup) -> DataLoader { + public func prime(key: Key, value: Value, on eventLoop: EventLoopGroup) -> DataLoader { let cacheKey = options.cacheKeyFunction?(key) ?? key lock.withLockVoid {