@@ -108,7 +108,7 @@ final public class DataLoader<Key: Hashable, Value> {
108
108
/// Clears the value at `key` from the cache, if it exists. Returns itself for
109
109
/// method chaining.
110
110
@discardableResult
111
- func clear( key: Key ) -> DataLoader < Key , Value > {
111
+ public func clear( key: Key ) -> DataLoader < Key , Value > {
112
112
let cacheKey = options. cacheKeyFunction ? ( key) ?? key
113
113
lock. withLockVoid {
114
114
cache. removeValue ( forKey: cacheKey)
@@ -120,7 +120,7 @@ final public class DataLoader<Key: Hashable, Value> {
120
120
/// invalidations across this particular `DataLoader`. Returns itself for
121
121
/// method chaining.
122
122
@discardableResult
123
- func clearAll( ) -> DataLoader < Key , Value > {
123
+ public func clearAll( ) -> DataLoader < Key , Value > {
124
124
lock. withLockVoid {
125
125
cache. removeAll ( )
126
126
}
@@ -130,7 +130,7 @@ final public class DataLoader<Key: Hashable, Value> {
130
130
/// Adds the provied key and value to the cache. If the key already exists, no
131
131
/// change is made. Returns itself for method chaining.
132
132
@discardableResult
133
- func prime( key: Key , value: Value , on eventLoop: EventLoopGroup ) -> DataLoader < Key , Value > {
133
+ public func prime( key: Key , value: Value , on eventLoop: EventLoopGroup ) -> DataLoader < Key , Value > {
134
134
let cacheKey = options. cacheKeyFunction ? ( key) ?? key
135
135
136
136
lock. withLockVoid {
0 commit comments