cache-memcached.php

Memcached driver for my cache library
git clone git://git.finwo.net/lib/cache-memcached.php
Log | Files | Refs | README

commit 674653968a712eba667d0bb93e472a51d8504878
parent f82befe7a45b836eaaf762e8a925f200b49a8f60
Author: finwo <finwo@pm.me>
Date:   Thu, 14 Apr 2016 09:49:46 +0200

Now also has server settings

Diffstat:
Mcomposer.lock | 13+++++--------
Msrc/Memcached.php | 4++--
2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/composer.lock b/composer.lock @@ -13,12 +13,12 @@ "source": { "type": "git", "url": "https://github.com/finwo/php-cache.git", - "reference": "7f3bb125bed7b062ebc589a29d3985695001157d" + "reference": "4a2503807243e9dc30e594ea542ac8c090a0e00a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/finwo/php-cache/zipball/7f3bb125bed7b062ebc589a29d3985695001157d", - "reference": "7f3bb125bed7b062ebc589a29d3985695001157d", + "url": "https://api.github.com/repos/finwo/php-cache/zipball/4a2503807243e9dc30e594ea542ac8c090a0e00a", + "reference": "4a2503807243e9dc30e594ea542ac8c090a0e00a", "shasum": "" }, "require": { @@ -38,7 +38,7 @@ "email": "robin@finwo.nl" } ], - "time": "2016-04-13 23:06:14" + "time": "2016-04-13 23:15:49" }, { "name": "finwo/data-tools", @@ -63,16 +63,13 @@ "Finwo\\Datatools\\": "src/" } }, + "notification-url": "https://packagist.org/downloads/", "authors": [ { "name": "Robin Bron", "email": "robin@finwo.nl" } ], - "support": { - "source": "https://github.com/finwo/data-tools-php/tree/master", - "issues": "https://github.com/finwo/data-tools-php/issues" - }, "time": "2016-04-13 17:36:03" }, { diff --git a/src/Memcached.php b/src/Memcached.php @@ -29,6 +29,7 @@ class Memcached extends Cache { if (null === $this->memcached) { $this->memcached = new \Memcached(); + $this->memcached->addServer($this->server, $this->port); } } @@ -88,4 +89,4 @@ class Memcached extends Cache // Store TTL $this->memcached->add($key_ttl, true, $ttl); } -} -\ No newline at end of file +}