PHP Classes

File: Atto/Cache/Storage.php

Recommend this page to a friend!
  Classes of Andrei Alexandru   Simple Cache System   Atto/Cache/Storage.php   Download  
File: Atto/Cache/Storage.php
Role: Class source
Content type: text/plain
Description: Storage interface
Class: Simple Cache System
Store and retrieve cached data in MySQL and files
Author: By
Last change:
Date: 7 years ago
Size: 666 bytes
 

Contents

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

/**
 * Storage Interface
 *
 * @package Atto
 *
 * @namespace Atto\Cache
 * @name Atto\Cache\Storage
 * @author Andrei Alexandru Romila
 * @version v1.0
 */
interface Storage {
   
   
/**
     * 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
     */
   
public function getItem($key);
}