コード例 #1
0
ファイル: CacheListener.php プロジェクト: itkg/consumer
 /**
  * @param AbstractService $service
  *
  * @return CacheableInterface|null
  */
 protected function createCache(AbstractService $service)
 {
     if (!$service instanceof ServiceCacheableInterface) {
         return null;
     }
     return new CacheableData($service->getHashKey(), $service->getTtl(), $service);
 }