PHP Classes

File: samples/memcached.php

Recommend this page to a friend!
  Classes of Juraj Puchký  >  PHP Cache Object  >  samples/memcached.php  >  Download  
File: samples/memcached.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Cache Object
Save and load variable values in cache containers
Author: By
Last change:
Date: 4 months ago
Size: 210 bytes
 

Contents

Class file image Download
<?php
require_once __DIR__.'/../vendor/autoload.php';

$object = [1,2,3,4];

$cache = new \BABA\Cache\Cache(new \BABA\Cache\Drivers\Memcached());

$cache->store('test', $object);
var_dump($cache->load('test'));

For more information send a message to info at phpclasses dot org.