| 1 | <?php |
||
| 7 | class NoCacheEngine implements CacheEngineInterface |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @param string $key The object KEY |
||
| 12 | * @param int $ttl IGNORED IN MEMCACHED. |
||
| 13 | * @return object Description |
||
| 14 | */ |
||
| 15 | public function get($key, $ttl = 0) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $key The object Key |
||
| 22 | * @param object $object The object to be cached |
||
| 23 | * @param int $ttl The time to live in seconds of this objects |
||
| 24 | * @return bool If the object is successfully posted |
||
| 25 | */ |
||
| 26 | public function set($key, $object, $ttl = 0) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Unlock resource |
||
| 33 | * @param string $key |
||
| 34 | */ |
||
| 35 | public function release($key) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * |
||
| 42 | * @param string $key |
||
| 43 | * @param string $str |
||
| 44 | * @return bool |
||
| 45 | */ |
||
| 46 | public function append($key, $str) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Lock resource before set it. |
||
| 53 | * @param string $key |
||
| 54 | */ |
||
| 55 | public function lock($key) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * UnLock resource after set it |
||
| 62 | * @param string $key |
||
| 63 | */ |
||
| 64 | public function unlock($key) |
||
| 68 | |||
| 69 | public function isAvailable() |
||
| 73 | |||
| 74 | |||
| 75 | } |
||
| 76 |