1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 02:39:47 +02:00

Begin WebSocket support for Broadcast and Player control

This commit is contained in:
Afterster 2014-02-05 08:08:46 +01:00
parent 2b128b122d
commit 6adf8307c4
516 changed files with 64260 additions and 18 deletions

View file

@ -0,0 +1,29 @@
<?php
namespace React\Cache;
use React\Promise;
class ArrayCache implements CacheInterface
{
private $data = array();
public function get($key)
{
if (!isset($this->data[$key])) {
return Promise\reject();
}
return Promise\resolve($this->data[$key]);
}
public function set($key, $value)
{
$this->data[$key] = $value;
}
public function remove($key)
{
unset($this->data[$key]);
}
}