From c36d9105c44d6cbbf905b7aafebcb29d488f397c Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Sun, 16 Jul 2017 22:20:51 +0200 Subject: [PATCH] Namespace memcached (#178) * Add memcached support * MInor --- .travis.yml | 7 +++++++ composer.json | 34 +++++++++++++++++----------------- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/.travis.yml b/.travis.yml index 942fe27..012f31b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,10 +5,17 @@ matrix: include: - php: 7.0 +services: + - memcached + cache: directories: - "$HOME/.composer/cache" +before_install: + - mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d + - bash <(curl -s https://raw.githubusercontent.com/php-cache/cache/master/build/php/7.0/Memcached.sh) + install: - composer update --prefer-dist --prefer-stable diff --git a/composer.json b/composer.json index 4ec4665..3e5a52d 100644 --- a/composer.json +++ b/composer.json @@ -1,34 +1,34 @@ { - "name": "cache/namespaced-cache", - "description": "A decorator that makes your cache support namespaces", - "type": "library", - "license": "MIT", + "name": "cache/namespaced-cache", + "description": "A decorator that makes your cache support namespaces", + "type": "library", + "license": "MIT", "minimum-stability": "dev", - "prefer-stable": true, - "keywords": [ + "prefer-stable": true, + "keywords": [ "cache", "psr-6", "namespace" ], - "homepage": "http://www.php-cache.com/en/latest/", - "authors": [ + "homepage": "http://www.php-cache.com/en/latest/", + "authors": [ { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com", + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", "homepage": "https://github.com/nyholm" } ], - "require": { - "php": "^5.6 || ^7.0", - "psr/cache": "^1.0", + "require": { + "php": "^5.6 || ^7.0", + "psr/cache": "^1.0", "cache/hierarchical-cache": "^1.0" }, - "require-dev": { - "phpunit/phpunit": "^5.7.21", + "require-dev": { + "phpunit/phpunit": "^5.7.21", "cache/memcached-adapter": "^1.0" }, - "autoload": { - "psr-4": { + "autoload": { + "psr-4": { "Cache\\Namespaced\\": "" }, "exclude-from-classmap": [