-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from fahamutech/migrate_to_functional_and_minim…
…alistic Migrate to functional and minimalistic
- Loading branch information
Showing
49 changed files
with
744 additions
and
3,193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import 'package:bfast/adapter/query.dart'; | ||
|
||
abstract class CacheAdapter { | ||
Future<T> set<T>(String identifier, T data, {int dtl}); | ||
|
||
Future<T> get<T>(String identifier); | ||
|
||
Future<List<K>> keys<K>(); | ||
|
||
Future<bool> clearAll(); | ||
|
||
Future<bool> remove(String identifier, {bool force}); | ||
|
||
bool cacheEnabled({RequestOptions options}); | ||
} | ||
// | ||
// | ||
// abstract class CacheAdapter { | ||
// Future<T> set<T>(String identifier, T data, {int dtl}); | ||
// | ||
// Future<T> get<T>(String identifier); | ||
// | ||
// Future<List<K>> keys<K>(); | ||
// | ||
// Future<bool> clearAll(); | ||
// | ||
// Future<bool> remove(String identifier, {bool force}); | ||
// } |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import '../options.dart'; | ||
|
||
abstract class RealtimeAdapter { | ||
send(App app,String event); | ||
close(App app, String event); | ||
receive(App app, String event); | ||
closeAll(); | ||
closeAllOfApp(App app); | ||
count(App app); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.