File: application/modules/extensions/aws/Aws/CacheInterface.php

Recommend this page to a friend!
  Classes of Tran Tuan  >  Pretty PHP S3 Files Manager  >  application/modules/extensions/aws/Aws/CacheInterface.php  >  Download  
File: application/modules/extensions/aws/Aws/CacheInterface.php
Role: Application script
Content type: text/plain
Description: Initial
Class: Pretty PHP S3 Files Manager
Web based interface to manage files in Amazon S3
Author: By
Last change:
Date: 4 years ago
Size: 755 bytes
 

Contents

Class file image Download
<?php
namespace Aws;

/**
 * Represents a simple cache interface.
 */
interface CacheInterface
{
   
/**
     * Get a cache item by key.
     *
     * @param string $key Key to retrieve.
     *
     * @return mixed|null Returns the value or null if not found.
     */
   
public function get($key);

   
/**
     * Set a cache key value.
     *
     * @param string $key Key to set
     * @param mixed $value Value to set.
     * @param int $ttl Number of seconds the item is allowed to live. Set
     * to 0 to allow an unlimited lifetime.
     */
   
public function set($key, $value, $ttl = 0);

   
/**
     * Remove a cache key.
     *
     * @param string $key Key to remove.
     */
   
public function remove($key);
}


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