承接 momentohq/client-sdk-php 相关项目开发

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

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

momentohq/client-sdk-php

最新稳定版本:v1.17.1

Composer 安装命令:

composer require momentohq/client-sdk-php

包简介

PHP SDK for Momento, a serverless cache that automatically scales without any of the operational overhead required by traditional caching solutions.

README 文档

README

logo

project status project stability

Momento Client Library for PHP

Momento Cache is a fast, simple, pay-as-you-go caching solution without any of the operational overhead required by traditional caching solutions. This repo contains the source code for the Momento client library for PHP.

To get started with Momento you will need a Momento Auth Token. You can get one from the Momento Console.

Japanese: 日本語

Packages

The Momento SDK for PHP package is available on packagist.org: client-sdk-php

Usage

<?php
require "vendor/autoload.php";
use Momento\Auth\CredentialProvider;
use Momento\Cache\CacheClient;
use Momento\Config\Configurations\Laptop;

$client = new CacheClient(
    Laptop::latest(), CredentialProvider::fromEnvironmentVariable("MOMENTO_API_KEY"), 60
);
$client->createCache("cache");
$client->set("cache", "myKey", "myValue");
$response = $client->get("cache", "myKey");
if ($hit = $response->asHit()) {
    print("Got value: {$hit->valueString()}\n");
}

Getting Started and Documentation

To get started with Momento you will need a Momento API key. You can get one from the Momento Console.

Documentation is available on the Momento Docs website.

Examples

Working example projects, with all required build configuration files, are available in the examples directory.

Developing

If you are interested in contributing to the SDK, please see the CONTRIBUTING docs.

Attributions

This product includes PHP software, freely available from http://www.php.net/software/

For more info, visit our website at https://gomomento.com!

统计信息

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

GitHub 信息

  • Stars: 12
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2023-03-21