for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace AdammBalogh\KeyValueStore\Implementation;
use AdammBalogh\KeyValueStore\Exception\InternalException;
trait ServerTrait
{
use AdapterTrait;
/**
* Removes all keys.
*
* @return void
* @throws \AdammBalogh\KeyValueStore\Exception\InternalException
*/
public function flush()
try {
$this->getAdapter()->flush();
} catch (\Exception $e) {
throw new InternalException($e->getMessage(), $e->getCode(), $e);
}