You are here

protected function RequestTimeTrait::shortMd5 in Supercache 2.0.x

Same name and namespace in other branches
  1. 8 src/Cache/RequestTimeTrait.php \Drupal\supercache\Cache\RequestTimeTrait::shortMd5()

Returns a 12 character length MD5.

Parameters

string $string:

Return value

string

1 call to RequestTimeTrait::shortMd5()
ApcuRawBackend::__construct in src/Cache/ApcuRawBackend.php
Constructs a new ApcuBackend instance.

File

src/Cache/RequestTimeTrait.php, line 44

Class

RequestTimeTrait

Namespace

Drupal\supercache\Cache

Code

protected function shortMd5($string) {
  return substr(base_convert(md5($string), 16, 32), 0, 12);
}