mirror of
https://github.com/nasa/openmct.git
synced 2025-05-02 08:43:17 +00:00
[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:
parent
960a7fcb7c
commit
d109c7d8bc
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,6 +1,5 @@
|
|||||||
[
|
[
|
||||||
"CachingPersistenceDecorator",
|
|
||||||
"CouchDocument",
|
"CouchDocument",
|
||||||
"CouchIndicator",
|
"CouchIndicator",
|
||||||
"CouchPersistenceProvider"
|
"CouchPersistenceProvider"
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user