Closed chimon2000 closed 3 years ago
Yes,. I think so. Up. @hurshi
+1
Hello, thanks for your issue. It's supported now (0.2.11):
DioCacheManager(CacheConfig(baseUrl: "https://www.github.com/", diskStore: MyDiskStore()))
class MyDiskStore implements ICacheStore {
@override
Future<bool> clearAll() {
// TODO: implement clearAll
throw UnimplementedError();
}
@override
Future<bool> clearExpired() {
// TODO: implement clearExpired
throw UnimplementedError();
}
@override
Future<bool> delete(String key, {String subKey}) {
// TODO: implement delete
throw UnimplementedError();
}
@override
Future<CacheObj> getCacheObj(String key, {String subKey}) {
// TODO: implement getCacheObj
throw UnimplementedError();
}
@override
Future<bool> setCacheObj(CacheObj obj) {
// TODO: implement setCacheObj
throw UnimplementedError();
}
}
It would be nice to be able to pass in your own version of CacheStore so that users are able to implement using different databases, such as Hive or Moor.