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
		);