承接 x-graphql/schema-cache 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

x-graphql/schema-cache

最新稳定版本:0.1.1

Composer 安装命令:

composer require x-graphql/schema-cache

包简介

Caching GraphQL schema with PSR-16

README 文档

README

Save and lazy load GraphQL Schema from PSR-16 cache.

unit tests codecov

Getting Started

Install this package via Composer

composer require x-graphql/schema-cache symfony/cache

Usages

Create an instance of XGraphQL\SchemaCache\SchemaCache with PSR-16 to save and load:

use Symfony\Component\Cache\Adapter\ArrayAdapter;
use Symfony\Component\Cache\Psr16Cache;
use XGraphQL\SchemaCache\SchemaCache;

$psr16 = new Psr16Cache(new ArrayAdapter());
$schemaCache = new SchemaCache($psr16);

$schemaCache->save(/* $schema */);

/// Lazy to load on another http requests

$schemaFromCache = $schemaCache->load();

Note

This package not support to decorate type after load schema from cache, you need to add type resolvers before execute schema.

Credits

Created by Minh Vuong

统计信息

  • 总下载量: 29.14k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 8
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知