2017 © Pedro Peláez
 

library simple-cache

Simple cache library for PHP built on top of PSR-16.

image

previewtechs/simple-cache

Simple cache library for PHP built on top of PSR-16.

  • Monday, November 13, 2017
  • by shahariaazam
  • Repository
  • 1 Watchers
  • 0 Stars
  • 540 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 2 Versions
  • 13 % Grown

The README.md

Simple Cache Client Adapter

PHP Cache library built by PSR-16 simple cache interface, (*1)

You can find implementations of the specification by looking for packages providing the psr/simple-cache-implementation virtual package., (*2)

Installation

  • Run this command: composer require previewtechs/simple-cache:dev-master

Usages

  • Create a file named test.php in your root directory and add these following codes:
<?php

require "vendor/autoload.php";

$cache = new Memcached();
$cache->addServers([
    ['localhost', 11211, 1]
]);

$cache = new Previewtechs\SimpleCache\Memcached($cache);

// Set Cache key.
$data = [
    'sample' => 'data',
    'another' => 'data'
];

$cache->set('your_custom_key', $data);

// Check cached key exists or not.
$cache->has('your_custom_key');

// Get Cached key data.
$cache->get('your_custom_key');

  • then run php test.php

For Documentations

psr/simple-cache-implementation, (*3)

The Versions

13/11 2017

dev-master

9999999-dev

Simple cache library for PHP built on top of PSR-16.

  Sources   Download

MIT

The Requires

 

13/11 2017

v1.0

1.0.0.0

Simple cache library for PHP built on top of PSR-16.

  Sources   Download

MIT

The Requires