PHP Classes

File: Atto/Cache/Storage/NullStorage.php

Recommend this page to a friend!
  Classes of Andrei Alexandru   Simple Cache System   Atto/Cache/Storage/NullStorage.php   Download  
File: Atto/Cache/Storage/NullStorage.php
Role: Class source
Content type: text/plain
Description: Null storage, if you dont want to use any cache for some reason
Class: Simple Cache System
Store and retrieve cached data in MySQL and files
Author: By
Last change:
Date: 7 years ago
Size: 886 bytes
 

Contents

Class file image Download
<?php
namespace Atto\Cache\storage;

use
Atto\Cache\Item;
use
Atto\Cache\Storage;

/**
 * NullStorage class
 *
 * @package Atto
 *
 * @namespace Atto\Cache\Storage
 * @name Atto\Cache\Storage\NullStorage
 * @author Andrei Alexandru Romila
 * @version v1.0
 */
class NullStorage implements Storage {

   
/**
     * FileStorage constructor
     */
   
public function __construct() {
       
    }
   
   
/**
     * Saves a new Item with the given key
     *
     * @param string $key
     * @param Item $item
     */
   
public function save($key, Item $item) {
       
    }
   
   
/**
     * Removes the indicated Item from the Storage
     *
     * @param string $key
     */
   
public function delete($key) {
       
    }

   
/**
     * Returns the Item associated with the given key
     *
     * @param string $key
     *
     * @return Item|null
     */
   
public function getItem($key) {
        return
null;
    }
}