| Methods |
public
|
__construct(
array<non-empty-string, ResourceEntry> $entries = [],
int $pageSize = CursorPaginator::DEFAULT_PAGE_SIZE,
int $ttlMs = 0,
CacheScope $cacheScope = CacheScope::Private,
)
|
#
|
public
|
onListChanged(Closure $listener): void
Registers a listener invoked once per change to the entries this store lists.
Registers a listener invoked once per change to the entries this store lists.
Implements
|
#
|
public
|
addResource(Resource $resource, ResourceReaderInterface $reader): void
Registers a resource, replacing any resource already listed under the same URI.
Registers a resource, replacing any resource already listed under the same URI.
Implements
|
#
|
public
|
removeResource(string $uri): bool
Removes the resource listed under $uri, reporting whether one was listed.
Removes the resource listed under $uri, reporting whether one was listed.
Implements
|
#
|
public
|
list(?Cursor $cursor): ListResourcesResult
|
#
|
public
|
read(string $uri, ServerContext $context): InputRequiredResult|ReadResourceResult
|
#
|