-
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.
* SqliteAdapter --> SqliteCacheAdapter * DevNullAdapter --> DevNullCacheAdapter
- Loading branch information
Showing
9 changed files
with
78 additions
and
78 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 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,7 @@ | ||
#include "abstractcacheadapter.hpp" | ||
|
||
using namespace Bidstack::Cache; | ||
|
||
AbstractCacheAdapter::AbstractCacheAdapter(QObject *parent) : QObject(parent) { | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#include "devnullcacheadapter.hpp" | ||
|
||
using namespace Bidstack::Cache; | ||
|
||
DevNullCacheAdapter::DevNullCacheAdapter(QObject *parent) : AbstractCacheAdapter(parent) { | ||
|
||
} | ||
|
||
bool DevNullCacheAdapter::store(QString key, QString data) { | ||
return store(key, data, 0); | ||
} | ||
|
||
bool DevNullCacheAdapter::store(QString key, QString data, int ttl) { | ||
Q_UNUSED(key); | ||
Q_UNUSED(data); | ||
Q_UNUSED(ttl); | ||
return true; | ||
} | ||
|
||
bool DevNullCacheAdapter::has(QString key) { | ||
Q_UNUSED(key); | ||
return false; | ||
} | ||
|
||
bool DevNullCacheAdapter::remove(QString key) { | ||
Q_UNUSED(key); | ||
return true; | ||
} | ||
|
||
bool DevNullCacheAdapter::clear() { | ||
return true; | ||
} | ||
|
||
QString DevNullCacheAdapter::fetch(QString key) { | ||
Q_UNUSED(key); | ||
return ""; | ||
} | ||
|
||
QString DevNullCacheAdapter::fetch(QString key, QString defaultValue) { | ||
Q_UNUSED(key); | ||
Q_UNUSED(defaultValue); | ||
return defaultValue; | ||
} |
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 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