alex-kalanis/memcache-wrapper

PHP wrapper for questioning Memcache as file storage

v2.0.2 2024-03-29 08:41 UTC

This package is auto-updated.

Last update: 2024-03-29 08:43:06 UTC


README

Build Status Latest Stable Version Minimum PHP Version Downloads License

Use Memcache records as they were usual files.

Installation

composer.phar require alex-kalanis/memcache-wrapper

(Refer to Composer Documentation if you are not familiar with composer)

Usages

Just only initialize wrapper with your Memcache instance.

Memcache module:

    $memcache = new \MemcachePool();
    MemcacheWrapper::setPool($memcache);
    MemcacheWrapper::register();

Then work something like following:

    file_get_contents('memcache://any/key/in/memcache/storage');
    file_put_contents('memcache://another/key/in/storage', 'add something');

For using storage just look onto kv_storage readme.