0142-filters-graphql-dataloader-set-cached
title: graphql_dataloader_set_cached hookType: filter hookGroup: models plugin: wp-graphql
graphql_dataloader_set_cached
apply_filters( 'graphql_dataloader_set_cached', $value, $key, static::class, $this );
Use this filter to store entry in a third-party caching system.
- Type: filter
- Group: Model Layer
- Since: 0.0.5
- Source File:
plugins/wp-graphql/src/Data/Loader/AbstractDataLoader.php
Parameters
$value(mixed): Value to be cached.$key(mixed): Key identifying object.$loader_class(string): Loader class name.$loader(mixed): Loader instance.
Source
apply_filters(
'graphql_dataloader_set_cached',
$value,
$key,
static::class,
$this
);
Related
AbstractDataLoader::set_cached()inplugins/wp-graphql/src/Data/Loader/AbstractDataLoader.php:445
这篇文档对你有帮助吗?
谢谢你的反馈!