[Persistence] Separate out cache
Move cache sources into their own bundle, for reuse with other persistence adapters; specifically supports the persistence adapter to the WARP Server, which is non-Couch but which will want to use this cache. WTD-702.
This commit is contained in:
14
platform/persistence/cache/bundle.json
vendored
Normal file
14
platform/persistence/cache/bundle.json
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"name": "Persistence cache",
|
||||||
|
"description": "Cache to improve availability of persisted objects.",
|
||||||
|
"extensions": {
|
||||||
|
"components": [
|
||||||
|
{
|
||||||
|
"provides": "persistenceService",
|
||||||
|
"type": "decorator",
|
||||||
|
"implementation": "CachingPersistenceDecorator.js",
|
||||||
|
"depends": [ "PERSISTENCE_SPACE" ]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
3
platform/persistence/cache/test/suite.json
vendored
Normal file
3
platform/persistence/cache/test/suite.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[
|
||||||
|
"CachingPersistenceDecorator"
|
||||||
|
]
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
[
|
[
|
||||||
"CachingPersistenceDecorator",
|
|
||||||
"CouchDocument",
|
"CouchDocument",
|
||||||
"CouchIndicator",
|
"CouchIndicator",
|
||||||
"CouchPersistenceProvider"
|
"CouchPersistenceProvider"
|
||||||
|
|||||||
Reference in New Issue
Block a user