code: public function put($key, $data, $duration = null)
      {
          return $this->cache->put(
              $key,
              $data,
              ($duration) ?: $this->duration
          );
      }
docs: Put the data in the cache
  and return the generated
  key.
  
  @param string $key
  @param mixed  $data
  
  @return string