/**
 * @cache-ttl-default 3
 */
class HashsterDocCached
{

   use CachableTraitDoc;

   public function __construct() {
      // CachableTraitDoc's init
      $this->init();

      // do the regular constructor stuff here
   }

   /**
    * Retrieves a remote resource, such as a file,
    * calculates the sha-256 hash, and returns it.
    * 
    * @cached
    * @cache-ttl 5
    * @param string $uri
    * @return String
    */
   protected function getRemoteResourceHash($uri = null) {
      return $contents = hash_file('sha256', $uri);
   }
}