Right now, the only persistent cache that Pigeon provides is UserDefaultsQueryCache, which is very convenient but it's not CoreData.
On the other hand, Pigeon provides QueryCacheType as a way to extend cache functionality. By implementing these properties, users can extend Pigeon cache functionality
public protocol QueryCacheType {
func save<T: Codable>(_ value: T, for key: QueryKey, andTimestamp timestamp: Date)
func invalidate(for key: QueryKey)
func isValueValid(
forKey key: QueryKey,
timestamp: Date,
andInvalidationPolicy invalidationPolicy: QueryCacheConfig.InvalidationPolicy
) -> Bool
func get<T: Codable>(for key: QueryKey) -> T?
}
How can we improve CoreData integration in Pigeon? Any ideas?
Right now, the only persistent cache that Pigeon provides is
UserDefaultsQueryCache, which is very convenient but it's not CoreData.On the other hand, Pigeon provides
QueryCacheTypeas a way to extend cache functionality. By implementing these properties, users can extend Pigeon cache functionalityHow can we improve CoreData integration in Pigeon? Any ideas?