Advertisement
stixlink

ICache

Jul 10th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  * Created by PhpStorm.
  5.  * User: Stixlink
  6.  * Date: 10.07.14
  7.  * Time: 18:10
  8.  */
  9. namespace interfaces;
  10.  
  11.  
  12. interface ICache {
  13.  
  14.     /**
  15.      * @param $key string unique key
  16.      */
  17.     public function get($key);
  18.  
  19.     /**
  20.      * @param $key      string unique key
  21.      * @param $value    mixed
  22.      * @param $duration int
  23.      */
  24.     public function set($key, $value, $duration = 3600);
  25.  
  26.     /**
  27.      * @param $key string unique key
  28.      */
  29.     public function delete($key);
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement