Start of cacheservice
This commit is contained in:
parent
98c29d9c7c
commit
65d914f5aa
1 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
import 'dart:async';
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
|
||||
|
@ -18,4 +19,24 @@ class CacheService extends Service {
|
|||
: this.cache = cache ?? new MapService() {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue