Files
CommunitySolidServer/config/storage/middleware/default.json
Joachim Van Herwegen 0e4d012086 feat: Add CachedResourceSet
Uses a WeakMap on the identifier to cache resource existence.
2022-03-18 14:15:12 +01:00

41 lines
1.7 KiB
JSON

{
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^3.0.0/components/context.jsonld",
"import": [
"files-scs:config/storage/middleware/stores/converting.json",
"files-scs:config/storage/middleware/stores/locking.json",
"files-scs:config/storage/middleware/stores/patching.json"
],
"@graph": [
{
"comment": "A cache to prevent duplicate existence checks on resources.",
"@id": "urn:solid-server:default:CachedResourceSet",
"@type": "CachedResourceSet",
"source": { "@id": "urn:solid-server:default:ResourceStore" }
},
{
"comment": "Sets up a stack of utility stores used by most instances.",
"@id": "urn:solid-server:default:ResourceStore",
"@type": "MonitoringStore",
"MonitoringStore:_source": { "@id": "urn:solid-server:default:ResourceStore_Index" }
},
{
"comment": "When a container with an index.html document is accessed, serve that HTML document instead of the container.",
"@id": "urn:solid-server:default:ResourceStore_Index",
"@type": "IndexRepresentationStore",
"IndexRepresentationStore:_source": { "@id": "urn:solid-server:default:ResourceStore_Locking" }
},
{
"@id": "urn:solid-server:default:ResourceStore_Locking",
"LockingResourceStore:_source": { "@id": "urn:solid-server:default:ResourceStore_Patching" }
},
{
"@id": "urn:solid-server:default:ResourceStore_Patching",
"PatchingStore:_source": { "@id": "urn:solid-server:default:ResourceStore_Converting" }
},
{
"@id": "urn:solid-server:default:ResourceStore_Converting",
"RepresentationConvertingStore:_source": { "@id": "urn:solid-server:default:ResourceStore_Backend" }
}
]
}