1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Jenner
- * Date: 2015/8/12
- * Time: 14:59
- */
- namespace Jenner\SimpleFork\Cache;
- /**
- * cache for processes shared variables
- *
- * @package Jenner\SimpleFork\Cache
- */
- interface CacheInterface
- {
- /**
- * get var
- *
- * @param $key
- * @param null $default
- * @return bool|mixed
- */
- public function get($key, $default = null);
- /**
- * set var
- *
- * @param $key
- * @param null $value
- * @return
- */
- public function set($key, $value);
- /**
- * has var ?
- *
- * @param $key
- * @return bool
- */
- public function has($key);
- /**
- * delete var
- *
- * @param $key
- * @return bool
- */
- public function delete($key);
- }
|