for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kpicaza\RedisETagCache;
use Kpicaza\ETagCache\ETagGeneratorInterface;
use Kpicaza\RedisETagCache\Exception\EmptyETagException;
/**
* Class RedisETagGenerator
* @package Kpicaza\RedisETagCache
*/
class RedisETagGenerator implements ETagGeneratorInterface
{
* @param $content
* @return string
public function create($content)
if (empty($content)) {
return;
}
return md5($content);