Skip to content

Commit 267e01c

Browse files
committed
Merge pull request #4 from Nyholm/docs
Added docs
2 parents 2c0c09a + a63df87 commit 267e01c

File tree

5 files changed

+29
-11
lines changed

5 files changed

+29
-11
lines changed

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
language: php
22
php:
3-
- "7.0"
4-
- "5.6"
5-
- "5.5"
3+
- 7.0
4+
- 5.6
5+
- 5.5
6+
- hhvm
67

78
sudo: false
89

@@ -13,11 +14,11 @@ matrix:
1314
fast_finish: true
1415

1516
before_install:
16-
- phpenv config-rm xdebug.ini
17+
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]]; then phpenv config-rm xdebug.ini; fi;
1718
- pip install --user codecov
1819

1920
before_script:
20-
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
21+
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]]; then echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;
2122
- travis_retry composer self-update
2223
- travis_retry composer install --prefer-source --no-interaction
2324

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1-
# Memcached PSR-6 adapter
2-
[![Build Status](https://travis-ci.org/php-cache/memcached-adapter.svg?branch=master)](https://travis-ci.org/php-cache/memcached-adapter) [![codecov.io](https://codecov.io/github/php-cache/memcached-adapter/coverage.svg?branch=master)](https://codecov.io/github/php-cache/memcached-adapter?branch=master)
1+
# Memcached PSR-6 Cache pool
2+
[![Latest Stable Version](https://poser.pugx.org/cache/memcached-adapter/v/stable)](https://packagist.org/packages/cache/memcached-adapter) [![codecov.io](https://codecov.io/github/php-cache/memcached-adapter/coverage.svg?branch=master)](https://codecov.io/github/php-cache/memcached-adapter?branch=master) [![Build Status](https://travis-ci.org/php-cache/memcached-adapter.svg?branch=master)](https://travis-ci.org/php-cache/memcached-adapter) [![Total Downloads](https://poser.pugx.org/cache/memcached-adapter/downloads)](https://packagist.org/packages/cache/memcached-adapter) [![Monthly Downloads](https://poser.pugx.org/cache/memcached-adapter/d/monthly.png)](https://packagist.org/packages/cache/memcached-adapter) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
33

4-
This is a implementation for the PSR-6 for Memcached cache. This implementation supports tags.
4+
This is a PSR-6 cache implementation Memcached. It is a part of the PHP Cache organisation. To read about
5+
features like tagging and hierarchy support please read the shared documentation at [www.php-cache.com](http://www.php-cache.com).
6+
7+
### Install
8+
9+
```bash
10+
composer require cache/memcached-adapter
11+
```
12+
13+
### Configure
14+
15+
To create an instance of `MemcachedCachePool` you need to configure a `\Memcached` client.
16+
17+
```php
18+
$client = new \Memcached();
19+
$client->addServer('localhost', 11211);
20+
$pool = new MemcachedCachePool($client);
21+
```

src/MemcachedCachePool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* This file is part of php-cache\mencached-adapter package.
4+
* This file is part of php-cache\memcached-adapter package.
55
*
66
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*

tests/IntegrationPoolTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* This file is part of php-cache\mencached-adapter package.
4+
* This file is part of php-cache\memcached-adapter package.
55
*
66
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*

tests/IntegrationTagTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*
4-
* This file is part of php-cache\mencached-adapter package.
4+
* This file is part of php-cache\memcached-adapter package.
55
*
66
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*

0 commit comments

Comments
 (0)