From 65d914f5aae74ddfad3b238300a3d29b12844e1c Mon Sep 17 00:00:00 2001 From: Tobe O Date: Sun, 1 Apr 2018 22:58:16 -0400 Subject: [PATCH] Start of cacheservice --- lib/src/cache_service.dart | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/lib/src/cache_service.dart b/lib/src/cache_service.dart index 3a8ef9cf..9f79435f 100644 --- a/lib/src/cache_service.dart +++ b/lib/src/cache_service.dart @@ -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); + } }