/** * 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(); }
/** * Get the cache key for the given content. * * @param \Fahita\RealTime\Content $content * * @return string */ public function getContentKey(Content $content) { return 'content:' . $content->id(); }