2017 © Pedro Peláez
 

library simple-memcached

image

davidonium/simple-memcached

  • Wednesday, April 5, 2017
  • by Davidonium
  • Repository
  • 2 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SimpleMemcached

A simple implementation of psr-16 simple-cache using the memcached extension., (*1)

For now the you can look at the tests for examples., (*2)

This is my first open source project, I will gladly accept any advice you can give me :)., (*3)

TODO

  • Test ttl
  • ~~Test multiple key actions on failure because invalid keys~~
  • Find out why keys using "\n\t\f" in double quoted php strings work and don't throw exception

Install

composer require davidonium/simple-memcached

Use

Create a test that looks like this:, (*4)

$memcached = new \Memcached();
$memcached->addServer('127.0.0.1', '11211');
$cache = new \SimpleMemcached\SimpleMemcached($memcached);
$cache->set('lorem', 'ipsum');
$value = $cache->get('lorem'); // ipsum

The Versions

05/04 2017

dev-master

9999999-dev https://github.com/davidonium/simple-memcached

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Hernando Jurado

cache memcached psr16