Beispiel #1
0
 /**
  * Get the cache key based on the given content instance.
  *
  * @param  \Fahita\RealTime\Content $content
  *
  * @return string
  */
 protected function getCacheKeyForContent(Content $content)
 {
     return ':' . $this->cache_prefix . ':' . $content->type() . ':' . $content->id();
 }
Beispiel #2
0
 /**
  * Get the cache key for the given content.
  *
  * @param \Fahita\RealTime\Content $content
  *
  * @return string
  */
 public function getContentKey(Content $content)
 {
     return 'content:' . $content->id();
 }