Skip to content
PHP classes for caching singletons
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
composer.json

README.md

simple-cache

PHP classes for caching singletons

Latest Stable Version License

Requirements

  • PHP >= 5.3

Suggestions

  • PHP extension memcached

Installation

Install directly via Composer:

$ composer require phyrexia/cache

Basic Usage

Memcached

<?php
require 'vendor/autoload.php';

use Phyrexia\Cache\Memcached;

//First call: generate instance (next calls won't need parameters, Singleton <3)
$mc = Memcached::getInstance(HOST, PORT);

//Do stuff
$r = Memcached::getInstance()->set('key', 'value');
You can’t perform that action at this time.