pnixx/amp-memcache

A non-blocking Memcache client for Amp.

1.0.0-beta.6 2023-02-16 11:30 UTC

This package is auto-updated.

Last update: 2024-04-16 13:54:16 UTC


README

pnixx/amp-memcache provides non-blocking access to Memcache instances. All I/O operations are handled by the Amp concurrency framework, so you should be familiar with the basics of it.

Required PHP Version

  • PHP 8.1+

Installation

This package can be installed as a Composer dependency.

composer require pnixx/amp-memcache

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

use PNixx\Memcache\Memcache;

$memcache = new Memcache(['127.0.0.1:11211']);
$memcache->set('foo', '21');
\var_dump($memcache->increment('foo', 21));

License

The MIT License (MIT). Please see LICENSE for more information.