-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated all the readmes to be coherent
- Loading branch information
Showing
1 changed file
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,30 @@ | ||
# Memcache PSR-6 adapter | ||
[![Build Status](https://travis-ci.org/php-cache/memcache-adapter.svg?branch=master)](https://travis-ci.org/php-cache/memcache-adapter) [![codecov.io](https://codecov.io/github/php-cache/memcache-adapter/coverage.svg?branch=master)](https://codecov.io/github/php-cache/memcache-adapter?branch=master) | ||
# Memcache PSR-6 Cache pool | ||
[![Gitter](https://badges.gitter.im/php-cache/cache.svg)](https://gitter.im/php-cache/cache?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) | ||
[![Latest Stable Version](https://poser.pugx.org/cache/memcache-adapter/v/stable)](https://packagist.org/packages/cache/memcache-adapter) | ||
[![Total Downloads](https://poser.pugx.org/cache/memcache-adapter/downloads)](https://packagist.org/packages/cache/memcache-adapter) | ||
[![Monthly Downloads](https://poser.pugx.org/cache/memcache-adapter/d/monthly.png)](https://packagist.org/packages/cache/memcache-adapter) | ||
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) | ||
|
||
This is a implementation for the PSR-6 for an memcache cache. This implementation supports tags. | ||
This is a PSR-6 cache implementation using Memcache. It is a part of the PHP Cache organisation. To read about | ||
features like tagging and hierarchy support please read the shared documentation at [www.php-cache.com](http://www.php-cache.com). | ||
|
||
| Feature | Supported | | ||
| ------- | --------- | | ||
| Flush everything | Yes | ||
| Expiration time | Yes | ||
| Tagging | Yes | ||
### Install | ||
|
||
```bash | ||
composer require cache/memcache-adapter | ||
``` | ||
|
||
### Use | ||
|
||
To create an instance of `MemcacheCachePool` you need to configure a `\Memcache` client. | ||
|
||
```php | ||
$client = new Memcache(); | ||
$client->connect('localhost', 11211); | ||
$pool = new MemcacheCachePool($client); | ||
``` | ||
|
||
### Contribute | ||
|
||
Contributions are very welcome! Send a pull request to the [main repository](https://github.com/php-cache/cache) or | ||
report any issues you find on the [issue tracker](http://issues.php-cache.com). |