Start of cacheservice

This commit is contained in:
Tobe O 2018-04-01 22:58:16 -04:00
parent 98c29d9c7c
commit 65d914f5aa

View file

@ -1,3 +1,4 @@
import 'dart:async';
import 'package:angel_framework/angel_framework.dart'; import 'package:angel_framework/angel_framework.dart';
import 'package:meta/meta.dart'; import 'package:meta/meta.dart';
@ -18,4 +19,24 @@ class CacheService extends Service {
: this.cache = cache ?? new MapService() { : this.cache = cache ?? new MapService() {
assert(database != null); assert(database != null);
} }
@override
Future create(data, [Map params]) {
return database.create(data, params);
}
@override
Future modify(id, data, [Map params]) {
return database.modify(id, data, params);
}
@override
Future update(id, data, [Map params]) {
return database.modify(id, data, params);
}
@override
Future remove(id, [Map params]) {
return database.remove(id, params);
}
} }