Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- interface cacheInterface
- {
- /**
- * Put data in cache
- *
- * @param string $key - Store key
- * @param mixed $data - Data to store
- * @param integer $ttl - Optional, cache TTL
- * @return void
- */
- public function put($key, $value, $ttl = 0);
- /**
- * Get data from cache
- *
- * @param string $key - Key to withdraw
- * @return mixed
- */
- public function get($key);
- /**
- * Remove data from cache
- *
- * @param string $key - Key to remove
- * @return void
- */
- public function remove($key);
- /**
- * Connection
- *
- * @param array $opts - Optional, connection options
- * @return boolean - Connection status
- */
- public function connect(array $opts);
- /**
- * Disconnect
- *
- * @return void
- */
- public function disconnect();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement