Skip to content

Commit c36d910

Browse files
authored
Namespace memcached (#178)
* Add memcached support * MInor
1 parent 6e4373d commit c36d910

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@ matrix:
55
include:
66
- php: 7.0
77

8+
services:
9+
- memcached
10+
811
cache:
912
directories:
1013
- "$HOME/.composer/cache"
1114

15+
before_install:
16+
- mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d
17+
- bash <(curl -s https://raw.githubusercontent.com/php-cache/cache/master/build/php/7.0/Memcached.sh)
18+
1219
install:
1320
- composer update --prefer-dist --prefer-stable
1421

composer.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
{
2-
"name": "cache/namespaced-cache",
3-
"description": "A decorator that makes your cache support namespaces",
4-
"type": "library",
5-
"license": "MIT",
2+
"name": "cache/namespaced-cache",
3+
"description": "A decorator that makes your cache support namespaces",
4+
"type": "library",
5+
"license": "MIT",
66
"minimum-stability": "dev",
7-
"prefer-stable": true,
8-
"keywords": [
7+
"prefer-stable": true,
8+
"keywords": [
99
"cache",
1010
"psr-6",
1111
"namespace"
1212
],
13-
"homepage": "http://www.php-cache.com/en/latest/",
14-
"authors": [
13+
"homepage": "http://www.php-cache.com/en/latest/",
14+
"authors": [
1515
{
16-
"name": "Tobias Nyholm",
17-
"email": "[email protected]",
16+
"name": "Tobias Nyholm",
17+
"email": "[email protected]",
1818
"homepage": "https://github.com/nyholm"
1919
}
2020
],
21-
"require": {
22-
"php": "^5.6 || ^7.0",
23-
"psr/cache": "^1.0",
21+
"require": {
22+
"php": "^5.6 || ^7.0",
23+
"psr/cache": "^1.0",
2424
"cache/hierarchical-cache": "^1.0"
2525
},
26-
"require-dev": {
27-
"phpunit/phpunit": "^5.7.21",
26+
"require-dev": {
27+
"phpunit/phpunit": "^5.7.21",
2828
"cache/memcached-adapter": "^1.0"
2929
},
30-
"autoload": {
31-
"psr-4": {
30+
"autoload": {
31+
"psr-4": {
3232
"Cache\\Namespaced\\": ""
3333
},
3434
"exclude-from-classmap": [

0 commit comments

Comments
 (0)