PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- class mcache {
- private $host;
- private $port;
- private $key;
- private $cache;
- private $time;
- public function __construct($key,$host = "127.0.0.1",$port = 12345) {
- $this->key = $key;
- $this->host = $host;
- $this->port = $port;
- $this->connect();
- }
- private function connect() {
- $i = 0;
- while ($i < 3) {
- if ($this->cache) break;
- }
- }
- public function lock() {
- }
- public function unlock() {
- }
- public function read() {
- }
- public function write($data,$time = 10) {
- }
- public function wread() {
- while (true) {
- }
- return $this->read();
- }
- public function wwrite($data,$time = 10) {
- while (true) {
- }
- return $this->write($data,$time);
- }
- public function clear() {
- }
- public function close() {
- }
- }